Example #1
0
 public virtual void Deserialize(NetworkBinaryReader reader, SerializationModeFlags mode, int framesAgo)
 {
     if (mode.HasFlag(SerializationModeFlags.ConstantDataFromClient))
     {
         LoginToken = reader.ReadString();
     }
 }
Example #2
0
 public override void Deserialize(NetworkBinaryReader reader, SerializationModeFlags mode, int framesAgo)
 {
     base.Deserialize(reader, mode, framesAgo);
     if ((mode & SerializationModeFlags.ConstantDataFromServer) != 0)
     {
         actionGobName = reader.ReadString();
     }
 }
Example #3
0
 protected override void Deserialize(NetworkBinaryReader reader)
 {
     GameplayMode = reader.ReadCanonicalString();
     ArenaID = reader.ReadByte();
     ArenaToPlay = reader.ReadString();
     ArenaTimeLeft = reader.ReadTimeSpan();
     WallCount = reader.ReadInt32();
 }
Example #4
0
 public void Deserialize(NetworkBinaryReader reader, SerializationModeFlags mode, int framesAgo)
 {
     if (mode.HasFlag(SerializationModeFlags.ConstantDataFromServer))
     {
         Name = reader.ReadString();
         Color = reader.ReadColor();
     }
     ArenaStatistics.Deserialize(reader, mode, framesAgo);
 }
 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);
 }
Example #6
0
 public virtual void Deserialize(NetworkBinaryReader reader, SerializationModeFlags mode, int framesAgo)
 {
     if (mode.HasFlag(SerializationModeFlags.ConstantDataFromServer) ||
         mode.HasFlag(SerializationModeFlags.ConstantDataFromClient))
     {
         Name = reader.ReadString();
     }
     if (mode.HasFlag(SerializationModeFlags.VaryingDataFromServer))
     {
         var isDisconnected = reader.ReadBoolean();
         if (IsRemote && isDisconnected) ConnectionStatus = ConnectionStatusType.Disconnected;
         if (IsDisconnected && !isDisconnected) ConnectionStatus = ConnectionStatusType.Remote;
         var oldTeam = Team;
         TeamProxy = reader.ReadTeamID(FindTeam);
         if (oldTeam != Team)
         {
             // Resign from old team now while we still have a direct reference to it.
             // The new team may not exist yet, so assign to it later in Update().
             if (oldTeam != null) oldTeam.UpdateAssignment(this);
             _teamAssignmentDeserialized = true;
         }
     }
     StatsData.Deserialize(reader, mode, framesAgo);
     ArenaStatistics.Deserialize(reader, mode, framesAgo);
 }
 protected override void Deserialize(NetworkBinaryReader reader)
 {
     SpectatorLocalID = reader.ReadByte();
     SpectatorID = reader.ReadByte();
     FailMessage = reader.ReadString();
 }
 protected override void Deserialize(NetworkBinaryReader reader)
 {
     Info = reader.ReadString();
 }
Example #9
0
 public void Deserialize(NetworkBinaryReader reader, SerializationModeFlags mode, int framesAgo)
 {
     PreText = reader.ReadString();
     Text = reader.ReadString();
     TextColor = reader.ReadColor();
 }
Example #10
0
 public void Deserialize(NetworkBinaryReader reader, SerializationModeFlags mode, int framesAgo)
 {
     if ((mode & SerializationModeFlags.ConstantDataFromServer) != 0)
     {
         _type = (CollisionAreaType)reader.ReadInt32();
         _name = reader.ReadString();
         _collisionMaterial = (CollisionMaterialType)reader.ReadByte();
         _area.Deserialize(reader, SerializationModeFlags.AllFromServer, framesAgo);
     }
 }
 protected override void Deserialize(NetworkBinaryReader reader)
 {
     ArenaToPlay = reader.ReadString();
     GameplayMode = reader.ReadCanonicalString();
 }
Example #12
0
 public override void Deserialize(NetworkBinaryReader reader, SerializationModeFlags mode, int framesAgo)
 {
     base.Deserialize(reader, mode, framesAgo);
     if ((mode & SerializationModeFlags.ConstantDataFromServer) != 0)
     {
         IconName = reader.ReadCanonicalString();
         DrawColor = reader.ReadColor();
         Message = reader.ReadString();
     }
 }