Beispiel #1
0
        public static void ReadKeepAlive(TestClient client, PacketReader reader)
        {
            KeepAlivePacket ka = new KeepAlivePacket();
            ka.Read(reader);

            if (!reader.Failed)
                TestClient.HandlePacketKeepAlive(client, ka);
        }
Beispiel #2
0
        public static void ReadTimeUpdate(TestClient client, PacketReader reader)
        {
            TimeUpdatePacket tu = new TimeUpdatePacket();

            tu.Read(reader);
        }
Beispiel #3
0
 public static void HandlePacketLoginRequest(TestClient client, LoginRequestPacket lr)
 {
     // Do something when logged
     client.StartTimer();
 }
Beispiel #4
0
 public static void ReadUpdateSign(TestClient client, PacketReader reader)
 {
     UpdateSignPacket us = new UpdateSignPacket();
     us.Read(reader);
 }
Beispiel #5
0
 public static void ReadSoundEffect(TestClient client, PacketReader reader)
 {
     SoundOrParticleEffectPacket se = new SoundOrParticleEffectPacket();
     se.Read(reader);
 }
Beispiel #6
0
 public static void ReadPickupSpawn(TestClient client, PacketReader reader)
 {
     SpawnItemPacket si = new SpawnItemPacket();
     si.Read(reader);
 }
Beispiel #7
0
 public static void ReadMobSpawn(TestClient client, PacketReader reader)
 {
     MobSpawnPacket ms = new MobSpawnPacket();
     ms.Read(reader);
 }
Beispiel #8
0
 public static void ReadEntityStatus(TestClient client, PacketReader reader)
 {
     EntityStatusPacket es = new EntityStatusPacket();
     es.Read(reader);
 }
Beispiel #9
0
        public static void ReadEntityLookAndRelativeMove(TestClient client, PacketReader reader)
        {
            EntityLookAndRelativeMovePacket ela = new EntityLookAndRelativeMovePacket();

            ela.Read(reader);
        }
Beispiel #10
0
        public static void ReadEntityRelativeMove(TestClient client, PacketReader reader)
        {
            EntityRelativeMovePacket er = new EntityRelativeMovePacket();

            er.Read(reader);
        }
Beispiel #11
0
        public static void ReadEntityLook(TestClient client, PacketReader reader)
        {
            EntityLookPacket el = new EntityLookPacket();

            el.Read(reader);
        }
Beispiel #12
0
        public static void ReadEntity(TestClient client, PacketReader reader)
        {
            CreateEntityPacket ce = new CreateEntityPacket();

            ce.Read(reader);
        }
Beispiel #13
0
        public static void ReadNamedEntitySpawn(TestClient client, PacketReader reader)
        {
            NamedEntitySpawnPacket bc = new NamedEntitySpawnPacket();

            bc.Read(reader);
        }
Beispiel #14
0
        public static void ReadMultiBlockChange(TestClient client, PacketReader reader)
        {
            MultiBlockChangePacket mbc = new MultiBlockChangePacket();

            mbc.Read(reader);
        }
Beispiel #15
0
        public static void ReadBlockChange(TestClient client, PacketReader reader)
        {
            BlockChangePacket bc = new BlockChangePacket();

            bc.Read(reader);
        }
Beispiel #16
0
 public static void ReadEntityLook(TestClient client, PacketReader reader)
 {
     EntityLookPacket el = new EntityLookPacket();
     el.Read(reader);
 }
Beispiel #17
0
 public static void ReadEntityMetadata(TestClient client, PacketReader reader)
 {
     EntityMetadataPacket em = new EntityMetadataPacket();
     em.Read(reader);
 }
Beispiel #18
0
        public static void ReadEntityTeleport(TestClient client, PacketReader reader)
        {
            EntityTeleportPacket et = new EntityTeleportPacket();

            et.Read(reader);
        }
Beispiel #19
0
        public static void ReadLoginRequest(TestClient client, PacketReader reader)
        {
            LoginRequestPacket lr = new LoginRequestPacket();
            lr.Read(reader);

            if (!reader.Failed)
                TestClient.HandlePacketLoginRequest(client, lr);
        }
Beispiel #20
0
        public static void ReadEntityStatus(TestClient client, PacketReader reader)
        {
            EntityStatusPacket es = new EntityStatusPacket();

            es.Read(reader);
        }
Beispiel #21
0
 public static void ReadNamedEntitySpawn(TestClient client, PacketReader reader)
 {
     NamedEntitySpawnPacket bc = new NamedEntitySpawnPacket();
     bc.Read(reader);
 }
Beispiel #22
0
        public static void ReadMobSpawn(TestClient client, PacketReader reader)
        {
            MobSpawnPacket ms = new MobSpawnPacket();

            ms.Read(reader);
        }
Beispiel #23
0
        public static void ReadPlayerPositionRotation(TestClient client, PacketReader reader)
        {
            PlayerPositionRotationPacket ppr = new PlayerPositionRotationPacket();
            ppr.Read(reader);

            if (!reader.Failed)
                TestClient.HandlePacketPlayerPositionRotation(client, ppr);
        }
Beispiel #24
0
        public static void ReadNewInvalidState(TestClient client, PacketReader reader)
        {
            NewInvalidStatePacket ni = new NewInvalidStatePacket();

            ni.Read(reader);
        }
Beispiel #25
0
 public static void ReadTimeUpdate(TestClient client, PacketReader reader)
 {
     TimeUpdatePacket tu = new TimeUpdatePacket();
     tu.Read(reader);
 }
Beispiel #26
0
        public static void ReadUpdateSign(TestClient client, PacketReader reader)
        {
            UpdateSignPacket us = new UpdateSignPacket();

            us.Read(reader);
        }
Beispiel #27
0
 public static void ReadAnimation(TestClient client, PacketReader reader)
 {
     AnimationPacket ap = new AnimationPacket();
     ap.Read(reader);
 }
Beispiel #28
0
        public static void ReadSetSlot(TestClient client, PacketReader reader)
        {
            SetSlotPacket ss = new SetSlotPacket();

            ss.Read(reader);
        }
Beispiel #29
0
 public static void HandlePacketChatMessage(TestClient client, ChatMessagePacket cm)
 {
     // Handle some commands?
 }
Beispiel #30
0
        public static void ReadPlayerListItem(TestClient client, PacketReader reader)
        {
            PlayerListItemPacket pl = new PlayerListItemPacket();

            pl.Read(reader);
        }
Beispiel #31
0
 public static void ReadEntityEquipment(TestClient client, PacketReader reader)
 {
     EntityEquipmentPacket ee = new EntityEquipmentPacket();
     ee.Read(reader);
 }
Beispiel #32
0
        public static void ReadUpdateHealth(TestClient client, PacketReader reader)
        {
            UpdateHealthPacket uh = new UpdateHealthPacket();

            uh.Read(reader);
        }
Beispiel #33
0
 public static void ReadEntityLookAndRelativeMove(TestClient client, PacketReader reader)
 {
     EntityLookAndRelativeMovePacket ela = new EntityLookAndRelativeMovePacket();
     ela.Read(reader);
 }
Beispiel #34
0
        public static void ReadEntityEquipment(TestClient client, PacketReader reader)
        {
            EntityEquipmentPacket ee = new EntityEquipmentPacket();

            ee.Read(reader);
        }
Beispiel #35
0
 public static void ReadEntityRelativeMove(TestClient client, PacketReader reader)
 {
     EntityRelativeMovePacket er = new EntityRelativeMovePacket();
     er.Read(reader);
 }
Beispiel #36
0
        public static void ReadDestroyEntity(TestClient client, PacketReader reader)
        {
            DestroyEntityPacket de = new DestroyEntityPacket();

            de.Read(reader);
        }
Beispiel #37
0
 public static void ReadEntityTeleport(TestClient client, PacketReader reader)
 {
     EntityTeleportPacket et = new EntityTeleportPacket();
     et.Read(reader);
 }
Beispiel #38
0
        public static void ReadAnimation(TestClient client, PacketReader reader)
        {
            AnimationPacket ap = new AnimationPacket();

            ap.Read(reader);
        }
Beispiel #39
0
 public static void ReadMapChunk(TestClient client, PacketReader reader)
 {
     MapChunkPacket mc = new MapChunkPacket();
     mc.Read(reader);
 }
Beispiel #40
0
        public static void ReadPickupSpawn(TestClient client, PacketReader reader)
        {
            SpawnItemPacket si = new SpawnItemPacket();

            si.Read(reader);
        }
Beispiel #41
0
 public static void ReadMultiBlockChange(TestClient client, PacketReader reader)
 {
     MultiBlockChangePacket mbc = new MultiBlockChangePacket();
     mbc.Read(reader);
 }
Beispiel #42
0
        public static void ReadCollectItem(TestClient client, PacketReader reader)
        {
            CollectItemPacket ci = new CollectItemPacket();

            ci.Read(reader);
        }
Beispiel #43
0
 public static void ReadNewInvalidState(TestClient client, PacketReader reader)
 {
     NewInvalidStatePacket ni = new NewInvalidStatePacket();
     ni.Read(reader);
 }
Beispiel #44
0
        public static void ReadUpdateWindowProperty(TestClient client, PacketReader reader)
        {
            UpdateWindowPropertyPacket up = new UpdateWindowPropertyPacket();

            up.Read(reader);
        }
Beispiel #45
0
 public static void ReadPlayerListItem(TestClient client, PacketReader reader)
 {
     PlayerListItemPacket pl = new PlayerListItemPacket();
     pl.Read(reader);
 }
Beispiel #46
0
        public static void ReadEntityMetadata(TestClient client, PacketReader reader)
        {
            EntityMetadataPacket em = new EntityMetadataPacket();

            em.Read(reader);
        }
Beispiel #47
0
 public static void ReadSetSlot(TestClient client, PacketReader reader)
 {
     SetSlotPacket ss = new SetSlotPacket();
     ss.Read(reader);
 }
Beispiel #48
0
        public static void ReadSoundEffect(TestClient client, PacketReader reader)
        {
            SoundOrParticleEffectPacket se = new SoundOrParticleEffectPacket();

            se.Read(reader);
        }
Beispiel #49
0
        public static void ReadSpawnPosition(TestClient client, PacketReader reader)
        {
            SpawnPositionPacket si = new SpawnPositionPacket();
            si.Read(reader);

            if (!reader.Failed)
                TestClient.HandlePacketSpawnPosition(client, si);
        }
Beispiel #50
0
 public static void ReadCollectItem(TestClient client, PacketReader reader)
 {
     CollectItemPacket ci = new CollectItemPacket();
     ci.Read(reader);
 }
Beispiel #51
0
 public static void ReadUpdateHealth(TestClient client, PacketReader reader)
 {
     UpdateHealthPacket uh = new UpdateHealthPacket();
     uh.Read(reader);
 }
Beispiel #52
0
 public static void ReadDestroyEntity(TestClient client, PacketReader reader)
 {
     DestroyEntityPacket de = new DestroyEntityPacket();
     de.Read(reader);
 }
Beispiel #53
0
 public static void ReadUpdateWindowProperty(TestClient client, PacketReader reader)
 {
     UpdateWindowPropertyPacket up = new UpdateWindowPropertyPacket();
     up.Read(reader);
 }
Beispiel #54
0
        public static void ReadDisconnect(TestClient client, PacketReader reader)
        {
            DisconnectPacket dp = new DisconnectPacket();
            dp.Read(reader);

            if (!reader.Failed)
                TestClient.HandlePacketDisconnect(client, dp);
        }
Beispiel #55
0
 public static void HandlePacketKeepAlive(TestClient client, KeepAlivePacket ka)
 {
     client.SendPacket(new KeepAlivePacket());
 }
Beispiel #56
0
 public static void ReadEntity(TestClient client, PacketReader reader)
 {
     CreateEntityPacket ce = new CreateEntityPacket();
     ce.Read(reader);
 }
Beispiel #57
0
 public static void HandlePacketHandshake(TestClient client, HandshakePacket hp)
 {
     client.SendPacket(new LoginRequestPacket {
         ProtocolOrEntityId = 19, Username = client.UserName
     });
 }
Beispiel #58
0
        public static void ReadEntityAction(TestClient client, PacketReader reader)
        {
            EntityActionPacket ea = new EntityActionPacket();
            ea.Read(reader);

            // TODO: implement this packet
            /*if (!reader.Failed)
                Client.HandlePacketEntityAction(client, ea);*/
        }
Beispiel #59
0
 public static void HandlePacketSpawnPosition(TestClient client, SpawnPositionPacket sp)
 {
     client.SpawnPosition = UniversalCoords.FromWorld(sp.X, sp.Y, sp.Z);
 }
Beispiel #60
0
        public static void ReadMapChunk(TestClient client, PacketReader reader)
        {
            MapChunkPacket mc = new MapChunkPacket();

            mc.Read(reader);
        }