Make UseSunlight a bool

This commit is contained in:
Jarrod Doyle 2024-12-09 14:35:41 +00:00
parent c2b69cda46
commit 596ce88215
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 4 additions and 2 deletions

View File

@ -16,7 +16,7 @@ public class RendParams : IChunk
public string palette;
public Vector3 ambientLight;
public int useSunlight;
public bool useSunlight;
public SunlightMode sunlightMode;
public Vector3 sunlightDirection;
public float sunlightHue;
@ -31,7 +31,8 @@ public class RendParams : IChunk
{
palette = reader.ReadNullString(16);
ambientLight = reader.ReadVec3();
useSunlight = reader.ReadInt32();
useSunlight = reader.ReadBoolean();
reader.ReadBytes(3);
sunlightMode = (SunlightMode)reader.ReadUInt32();
sunlightDirection = reader.ReadVec3();
sunlightHue = reader.ReadSingle();
@ -58,6 +59,7 @@ public class RendParams : IChunk
writer.WriteNullString(palette, 16);
writer.WriteVec3(ambientLight);
writer.Write(useSunlight);
writer.Write(new byte[3]);
writer.Write((uint)sunlightMode);
writer.WriteVec3(sunlightDirection);
writer.Write(sunlightHue);