Make Cell and LightTable classes

This commit is contained in:
Jarrod Doyle 2024-10-05 14:35:07 +01:00
parent 25e8e50f5e
commit 013a3b845a
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 7 additions and 7 deletions

View File

@ -50,7 +50,7 @@ public class WorldRep : IChunk
}
}
public struct Cell
public class Cell
{
public struct Poly
{
@ -394,7 +394,7 @@ public class WorldRep : IChunk
}
}
public readonly void Write(BinaryWriter writer)
public void Write(BinaryWriter writer)
{
writer.Write(VertexCount);
writer.Write(PolyCount);
@ -515,16 +515,16 @@ public class WorldRep : IChunk
}
}
public struct LightTable
public class LightTable
{
public struct LightData
{
public Vector3 Location;
public Vector3 Direction;
public Vector3 Color;
float InnerAngle; // I'm pretty sure these are the spotlight angles
float OuterAngle;
float Radius;
public float InnerAngle; // I'm pretty sure these are the spotlight angles
public float OuterAngle;
public float Radius;
public LightData(BinaryReader reader)
{
@ -595,7 +595,7 @@ public class WorldRep : IChunk
}
}
public readonly void Write(BinaryWriter writer)
public void Write(BinaryWriter writer)
{
writer.Write(LightCount);
writer.Write(DynamicLightCount);