mirror of
https://github.com/Wincent01/InfectedRose.git
synced 2025-12-20 11:30:41 -06:00
39 lines
841 B
C#
39 lines
841 B
C#
using InfectedRose.Core;
|
|
using RakDotNet.IO;
|
|
|
|
namespace InfectedRose.Lvl
|
|
{
|
|
public class IdStruct : IConstruct
|
|
{
|
|
public uint Id { get; set; }
|
|
|
|
public float UnknownFloat0 { get; set; }
|
|
|
|
public float UnknownFloat1 { get; set; }
|
|
|
|
public IdStruct(uint id = 0, float a = 0, float b = 0)
|
|
{
|
|
Id = id;
|
|
UnknownFloat0 = a;
|
|
UnknownFloat1 = b;
|
|
}
|
|
|
|
public void Serialize(BitWriter writer)
|
|
{
|
|
writer.Write(Id);
|
|
|
|
writer.Write(UnknownFloat0);
|
|
|
|
writer.Write(UnknownFloat1);
|
|
}
|
|
|
|
public void Deserialize(BitReader reader)
|
|
{
|
|
Id = reader.Read<uint>();
|
|
|
|
UnknownFloat0 = reader.Read<float>();
|
|
|
|
UnknownFloat1 = reader.Read<float>();
|
|
}
|
|
}
|
|
} |