blob: 925774ab959c81d377cb1543911151c93dcfa6cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
using Impostor.Api.Net.Messages;
namespace Impostor.Server.Net.Inner.Objects.Systems.ShipStatus
{
public class SwitchSystem : ISystemType, IActivatable
{
public byte ExpectedSwitches { get; set; }
public byte ActualSwitches { get; set; }
public byte Value { get; set; } = byte.MaxValue;
public bool IsActive { get; }
public void Serialize(IMessageWriter writer, bool initialState)
{
throw new System.NotImplementedException();
}
public void Deserialize(IMessageReader reader, bool initialState)
{
ExpectedSwitches = reader.ReadByte();
ActualSwitches = reader.ReadByte();
Value = reader.ReadByte();
}
}
}
|