Esempio n. 1
0
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(Player);
            stream.Write(Message);

            return this;
        }
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(CollectedEntityID);
            stream.Write(CollectorEntityID);

            return(this);
        }
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write((Byte)EntityIDs.Length);
            stream.Write(EntityIDs, false);

            return(this);
        }
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(CrashLogFilename);
            stream.Write(CrashLogFile);

            return this;
        }
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(UUID);
            stream.Write(Username);

            return(this);
        }
Esempio n. 6
0
        public override ProtobufPacket WritePacket(ProtobufStream writer)
        {
            writer.Write(DestinationId);
            writer.Write(MonsterData);

            return this;
        }
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(EntityID);
            stream.Write(Animation);

            return(this);
        }
        // -- Debug -- //
#endif

        public SCONClient(ITCPClient clientWrapper, ModuleSCON server)
        {
            Stream = new ProtobufStream(clientWrapper);
            Module = server;

            AuthorizationStatus = (EncryptionEnabled ? AuthorizationStatus.EncryprionEnabled : 0);
        }
Esempio n. 9
0
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(EntityID);
            stream.Write(Metadata);

            return(this);
        }
Esempio n. 10
0
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(WindowID);
            stream.Write(Enchantment);

            return(this);
        }
Esempio n. 11
0
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(AgeOfTheWorld);
            stream.Write(TimeOfDay);

            return(this);
        }
Esempio n. 12
0
        public override ProtobufPacket WritePacket(ProtobufStream writer)
        {
            writer.Write(TileSets);
            writer.Write(Images);

            return this;
        }
Esempio n. 13
0
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(Slot);
            stream.Write(ClickedItem);

            return(this);
        }
Esempio n. 14
0
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(PublicKey);
            stream.Write(VerificationToken);

            return this;
        }
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(Target);
            stream.Write(Mouse);

            return(this);
        }
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(Position);
            stream.Write(ScoreName);

            return(this);
        }
Esempio n. 17
0
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(Reason);
            stream.Write(Value);

            return(this);
        }
Esempio n. 18
0
        public override ProtobufPacket WritePacket(ProtobufStream writer)
        {
            writer.Write(PlayerIds);
            writer.Write(Message);

            return this;
        }
        // -- Debug -- //
#endif

        public SCONClient(ITCPClient clientWrapper, ModuleSCON server)
        {
            Stream = new ProtobufStream(clientWrapper);
            Module = server;

            AuthorizationStatus = (EncryptionEnabled ? AuthorizationStatus.EncryprionEnabled : 0);
        }
Esempio n. 20
0
        public override PluginMessageSubPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(Mapping.Count);
            foreach (var blockID in Mapping)
            {
                stream.Write(blockID.Name);
                stream.Write(blockID.ID);
            }

            if (BlockSubstitutions.Any())
            {
                stream.Write(BlockSubstitutions.Count);
                foreach (var blockSubstitution in BlockSubstitutions)
                {
                    stream.Write(blockSubstitution);
                }

                stream.Write(ItemSubstitutions.Count);
                foreach (var itemSubstitution in ItemSubstitutions)
                {
                    stream.Write(itemSubstitution);
                }
            }

            return(this);
        }
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(WindowID);
            stream.Write(SlotData);

            return(this);
        }
        public override PluginMessageSubPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(DimensionID);
            stream.Write(ProviderID);

            return(this);
        }
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(PlayerName);
            stream.Write(Online);
            stream.Write(Ping);

            return(this);
        }
Esempio n. 24
0
 public override ProtobufPacket WritePacket(ProtobufStream writer)
 {
     writer.Write(Message);
     writer.Write(Type);
     Battle.ToStream(writer);
     
     return this;
 }
Esempio n. 25
0
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(EntityID);
            stream.Write(ActionID);
            stream.Write(JumpBoost);

            return(this);
        }
Esempio n. 26
0
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(Yaw);
            stream.Write(Pitch);
            stream.Write(OnGround);

            return(this);
        }
Esempio n. 27
0
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(Flags);
            stream.Write(FlyingSpeed);
            stream.Write(WalkingSpeed);

            return(this);
        }
Esempio n. 28
0
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(EntityID);
            stream.Write(VehicleID);
            stream.Write(Leash);

            return(this);
        }
Esempio n. 29
0
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(ExperienceBar);
            stream.Write(Level);
            stream.Write(TotalExperience);

            return(this);
        }
Esempio n. 30
0
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(ObjectiveName);
            stream.Write(ObjectiveValue);
            stream.Write(CreateRemove);

            return(this);
        }
Esempio n. 31
0
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(X);
            stream.Write(Y);
            stream.Write(Z);

            return(this);
        }
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(Channel);
            stream.Write((Int16)Data.Length);
            stream.Write(Data, false);

            return(this);
        }
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(Health);
            stream.Write(Food);
            stream.Write(FoodSaturation);

            return(this);
        }
Esempio n. 34
0
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(WindowID);
            stream.Write(Property);
            stream.Write(Value);

            return(this);
        }
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(WindowID);
            stream.Write(ActionNumber);
            stream.Write(Accepted);

            return(this);
        }
Esempio n. 36
0
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(ItemName);
            stream.Write(UpdateRemove);
            stream.Write(ScoreName);
            stream.Write(Value);

            return(this);
        }
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(Dimension);
            stream.Write(Difficulty);
            stream.Write(GameMode);
            stream.Write(LevelType);

            return(this);
        }
        public SCONClient(ITCPClient client, SCONListener sconListener)
        {
            Client = client;
            Stream = new ProtobufStream(Client);

            _listener = sconListener;

            AuthorizationStatus = AuthorizationStatus.RemoteClientEnabled;
        }
Esempio n. 39
0
        public override ProtobufPacket WritePacket(ProtobufStream writer)
        {
            writer.Write(Time);
            writer.Write(Season);
            writer.Write(Weather);
            writer.Write(Event);

            return this;
        }
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write((Int16)SharedSecret.Length);
            stream.Write(SharedSecret, false);
            stream.Write((Int16)VerifyToken.Length);
            stream.Write(VerifyToken, false);

            return(this);
        }
Esempio n. 41
0
        public IBattleInfo ToStream(ProtobufStream writer)
        {
            writer.Write(Opponent_0);
            writer.Write(Opponent_1);
            writer.Write(Opponent_2);
            writer.Write(Opponent_3);
            writer.Write(Opponent_4);
            writer.Write(Opponent_5);

            return this;
        }
Esempio n. 42
0
        public override ProtobufPacket WritePacket(ProtobufStream writer)
        {
            writer.Write(PlayerId);
            writer.Write(TrainerSprite);
            writer.Write(Name);

            writer.Write(TrainerId);
            writer.Write(Gender);

            writer.Write(MonsterTeam);

            return this;
        }
Esempio n. 43
0
        // -- Debug -- //
#endif

        public SCONClient(BasicUIViewModel basicUIvm)
        {
            BasicUIVM = basicUIvm;
            BasicUIVM.OnConnect += BasicUIViewModel_OnConnect;
            BasicUIVM.OnDisconnect += BasicUIViewModel_OnDisconnect;

            BasicUIVM.TabChanged += BasicUIViewModel_TabChanged;

            BasicUIVM.OnGetLog += BasicUIViewModel_GetLog;
            BasicUIVM.OnGetCrashLog += BasicUIViewModel_GetCrashLog;

            BasicUIVM.OnSaveLog += BasicUIViewModel_SaveLog;

            BasicUIVM.OnChatStateChanged += BasicUIViewModel_OnChatStateChanged;

            Client = SocketClient.CreateTCP();
            Stream = new ProtobufStream(Client);
        }
Esempio n. 44
0
 public override ProtobufPacket WritePacket(ProtobufStream stream)
 {
     return this;
 }
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write((byte) AuthorizationStatus);

            return this;
        }
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(PlayerDatabases);

            return this;
        }
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(Name);

            return this;
        }
Esempio n. 48
0
        public override ProtobufPacket WritePacket(ProtobufStream writer)
        {
            writer.Write(Info);

            return this;
        }
        public override ProtobufPacket WritePacket(ProtobufStream stream)
        {
            stream.Write(PasswordHash);

            return this;
        }
Esempio n. 50
0
        public override ProtobufPacket WritePacket(ProtobufStream writer)
        {
            //writer.Write(BattleState);

            return this;
        }