Пример #1
0
 public override void Deserialize(ProtobufDeserialiser deserialiser)
 {
     Time    = deserialiser.Read(Time);
     Season  = deserialiser.Read(Season);
     Weather = deserialiser.Read(Weather);
     Event   = deserialiser.Read(Event);
 }
Пример #2
0
        //public IBattleInfo Battle { get; set; } = new BattleInfo1x1();


        public override void Deserialize(ProtobufDeserialiser deserialiser)
        {
            Message = deserialiser.Read(Message);
            Type    = deserialiser.Read(Type);

            /*
             * switch ((BattleType) Type)
             * {
             *  case BattleType.PvP_1:
             *  case BattleType.PvP_2:
             *  case BattleType.PvE_1:
             *  case BattleType.PvE_2:
             *      Battle = new BattleInfo1x1().FromReader(reader);
             *      break;
             *
             *  case BattleType.PvP_3:
             *  case BattleType.PvP_5:
             *  case BattleType.PvE_3:
             *  case BattleType.PvE_5:
             *  case BattleType.PvE_6:
             *  case BattleType.PvE_7:
             *      Battle = new BattleInfo2x2().FromReader(reader);
             *      break;
             *
             *  case BattleType.PvP_4:
             *  case BattleType.PvE_4:
             *      Battle = new BattleInfo3x3().FromReader(reader);
             *      break;
             *
             *  case BattleType.PvE_8:
             *      Battle = new BattleInfo1x5().FromReader(reader);
             *      break;
             * }
             */
        }
Пример #3
0
 public override void Deserialize(ProtobufDeserialiser deserialiser)
 {
     SharedSecret      = deserialiser.Read(SharedSecret);
     VerificationToken = deserialiser.Read(VerificationToken);
 }
 public override void Deserialize(ProtobufDeserialiser deserialiser)
 {
     AuthorizationStatus = (AuthorizationStatus)deserialiser.Read((byte)AuthorizationStatus);
 }
Пример #5
0
 public override void Deserialize(ProtobufDeserialiser deserialiser)
 {
     PublicKey         = deserialiser.Read(PublicKey);
     VerificationToken = deserialiser.Read(VerificationToken);
 }
Пример #6
0
 public override void Deserialize(ProtobufDeserialiser deserialiser)
 {
     CrashLogFilename = deserialiser.Read(CrashLogFilename);
 }
 public override void Deserialize(ProtobufDeserialiser deserialiser)
 {
     ScriptFile = deserialiser.Read(ScriptFile);
 }
Пример #8
0
 public override void Deserialize(ProtobufDeserialiser deserialiser)
 {
     Name = deserialiser.Read(Name);
 }
Пример #9
0
 public override void Deserialize(ProtobufDeserialiser deserialiser)
 {
     DestinationID = deserialiser.Read(DestinationID);
 }
Пример #10
0
 public override void Deserialize(ProtobufDeserialiser deserialiser)
 {
     Enabled = deserialiser.Read(Enabled);
 }
Пример #11
0
 public override void Deserialize(ProtobufDeserialiser deserialiser)
 {
     IsAccepted = deserialiser.Read(IsAccepted);
 }
Пример #12
0
 public override void Deserialize(ProtobufDeserialiser deserialiser)
 {
     Message = deserialiser.Read(Message);
 }
Пример #13
0
 public override void Deserialize(ProtobufDeserialiser deserialiser)
 {
     TileSetNames = deserialiser.Read(TileSetNames);
 }
 public override void Deserialize(ProtobufDeserialiser deserialiser)
 {
     PlayerID = deserialiser.Read(PlayerID);
 }
Пример #15
0
 public override void Deserialize(ProtobufDeserialiser deserialiser)
 {
     Bans = deserialiser.Read(Bans);
 }
Пример #16
0
 public override void Deserialize(ProtobufDeserialiser deserialiser)
 {
     BattleState = deserialiser.Read(BattleState);
 }
Пример #17
0
 public override void Deserialize(ProtobufDeserialiser deserialiser)
 {
     Command = deserialiser.Read(Command);
 }
Пример #18
0
 public override void Deserialize(ProtobufDeserialiser deserialiser)
 {
     Logs = deserialiser.Read(Logs);
 }
Пример #19
0
 public override void Deserialize(ProtobufDeserialiser deserialiser)
 {
     MapData       = deserialiser.Read(MapData);
     TileSetHashes = deserialiser.Read(TileSetHashes);
     ImageHashes   = deserialiser.Read(ImageHashes);
 }
Пример #20
0
 public override void Deserialize(ProtobufDeserialiser deserialiser)
 {
     PlayerDatabases = deserialiser.Read(PlayerDatabases);
 }
 public override void Deserialize(ProtobufDeserialiser deserialiser)
 {
     Reason = deserialiser.Read(Reason);
 }
 public override void Deserialize(ProtobufDeserialiser deserialiser)
 {
     PasswordHash = deserialiser.Read(PasswordHash);
 }
Пример #23
0
 public override void Deserialize(ProtobufDeserialiser deserialiser)
 {
     LogFilename = deserialiser.Read(LogFilename);
     LogFile     = deserialiser.Read(LogFile);
 }
Пример #24
0
 public override void Deserialize(ProtobufDeserialiser deserialiser)
 {
     PlayerIDs = deserialiser.Read(PlayerIDs);
     Message   = deserialiser.Read(Message);
 }