protected override void Deserialize(NetworkBinaryReader reader)
 {
     int count = reader.ReadByte();
     int totalByteCount = reader.ReadUInt16();
     _ids.Clear();
     for (int i = 0; i < count; i++) _ids.Add(reader.ReadByte());
     StreamedData = reader.ReadBytes(totalByteCount);
 }
Пример #2
0
 protected override void Deserialize(NetworkBinaryReader reader)
 {
     base.Deserialize(reader);
     PlayerID = reader.ReadInt16();
     int byteCount = reader.ReadUInt16();
     StreamedData = reader.ReadBytes(byteCount);
     Message = new PlayerMessage();
     Read(Message, SerializationModeFlags.AllFromServer, 0);
 }
 protected override void Deserialize(NetworkBinaryReader reader)
 {
     int canonicalStringCount = reader.ReadInt32();
     CanonicalStrings = new List<string>(canonicalStringCount);
     CanonicalStrings.Add(null);
     for (int i = 1; i < canonicalStringCount; ++i)
         CanonicalStrings.Add(reader.ReadString());
     int keyLength = reader.ReadInt16();
     GameClientKey = reader.ReadBytes(keyLength);
 }
Пример #4
0
 protected override void Deserialize(NetworkBinaryReader reader)
 {
     base.Deserialize(reader);
     ArenaID = reader.ReadByte();
     int gobCount = reader.ReadInt16();
     _layerIndices = new List<int>(gobCount);
     _gobTypeNames = new List<CanonicalString>(gobCount);
     for (int i = 0; i < gobCount; ++i) _layerIndices.Add(reader.ReadByte());
     for (int i = 0; i < gobCount; ++i) _gobTypeNames.Add(reader.ReadCanonicalString());
     int byteCount = reader.ReadUInt16();
     StreamedData = reader.ReadBytes(byteCount);
 }
Пример #5
0
 protected override void Deserialize(NetworkBinaryReader reader)
 {
     base.Deserialize(reader);
     var gobCount = reader.ReadByte();
     _collisionEventCount = reader.ReadByte();
     var totalByteCount = reader.ReadUInt16();
     _gobIds.Clear();
     for (int i = 0; i < gobCount; i++) _gobIds.Add(reader.ReadInt16());
     StreamedData = reader.ReadBytes(totalByteCount);
 }
 protected override void Deserialize(NetworkBinaryReader reader)
 {
     IsRegisteredToServer = reader.ReadBoolean();
     IsRequestingSpawnForArenaID = reader.ReadNullableByte();
     IsGameClientReadyToStartArena = reader.ReadBoolean();
     SpectatorID = reader.ReadByte();
     Subclass = (SubclassType)reader.ReadByte();
     if (!Enum.IsDefined(typeof(SubclassType), Subclass)) throw new NetworkException("Invalid value for Subclass, " + Subclass);
     int byteCount = reader.ReadUInt16();
     StreamedData = reader.ReadBytes(byteCount);
 }
 protected override void Deserialize(NetworkBinaryReader reader)
 {
     int keyLength = reader.ReadInt16();
     GameClientKey = reader.ReadBytes(keyLength);
 }