Skip to content

Commit c50fa97

Browse files
committed
hopefully fixed a bug with save system
1 parent a7b92b4 commit c50fa97

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

RayWrapper/GameBox.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ private static void Render()
272272
_isDrawing = false;
273273
}
274274

275-
private static void Dispose()
275+
public static void Dispose()
276276
{
277277
if (_isDrawing) EndDrawing();
278278
_schedulers.Clear();

RayWrapper/GeneralWrapper.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Linq;
23
using System.Numerics;
34
using System.Reflection;
45
using Raylib_cs;
@@ -133,7 +134,7 @@ public static void DrawPro(this Texture2D t, Vector2 pos, int rotation = 0) =>
133134

134135
public static void Set<T>(this T t, T overrider)
135136
{
136-
foreach (var field in typeof(T).GetRuntimeFields())
137+
foreach (var field in typeof(T).GetRuntimeFields().Where(f => !f.IsStatic))
137138
{
138139
try
139140
{

RayWrapper/RayWrapper.csproj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<TargetFramework>net5.0</TargetFramework>
55
<Nullable>disable</Nullable>
66
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
7+
<RepositoryUrl>https://github.com/SWCreeperKing/RayWrapper</RepositoryUrl>
78
</PropertyGroup>
89

910
<ItemGroup>
@@ -12,8 +13,4 @@
1213
<PackageReference Include="Raylib-cs" Version="3.7.0" />
1314
</ItemGroup>
1415

15-
<ItemGroup>
16-
<Folder Include="Examples" />
17-
</ItemGroup>
18-
1916
</Project>

RayWrapper/Vars/NumberClass.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public enum Format
1919
Engineering,
2020
}
2121

22-
public static float Version { get; } = .25f;
22+
public static readonly float Version = .25f;
2323
public static bool CutOff1E = true; // format; 1e1e30 => 1ee30
2424
public static int SciStaticLeng = 4;
2525
public static Format format = Format.Scientific;

0 commit comments

Comments
 (0)