public static Redirect Deserialize(HazelBinaryReader reader) { var msg = new Redirect(); msg.adress = reader.ReadBytes(4); msg.port = reader.ReadUInt16(); return(msg); }
public static RpcSnapTo Deserialize(HazelBinaryReader reader) { var msg = new RpcSnapTo(); msg.position = reader.ReadLerpVector2(xyrange, xyrange); msg.lastSequenceId = reader.ReadUInt16(); return(msg); }
public static HelloHandshake Deserialize(HazelBinaryReader reader) { var msg = new HelloHandshake(); msg.Nonce = reader.ReadUInt16(); msg.Version = reader.ReadByte(); msg.ClientVersion = reader.ReadInt32(); msg.Name = reader.ReadString(); return(msg); }
public static GameListItem Deserialize(HazelBinaryReader reader) { var msg = new GameListItem(); msg.adress = reader.ReadInt32(); msg.port = reader.ReadUInt16(); msg.code = reader.ReadInt32(); msg.name = reader.ReadString(); msg.players = reader.ReadByte(); msg.age = reader.ReadPackedInt32(); msg.mapid = reader.ReadByte(); msg.imposters = reader.ReadByte(); msg.maxplayers = reader.ReadByte(); return(msg); }