예제 #1
0
파일: Hello.cs 프로젝트: icegbq/Orion
        public void HandlePacket(BaseClient client, BasePacketIn packet)
        {
            if (!(client is GameClient))
                return;
            GameClient c = client as GameClient;

            if (c.Player == null)
                return;

            int x = (int)packet.ReadInt();
            short y = (short)packet.ReadShort();
        }
예제 #2
0
        public void HandlePacket(BaseClient client, BasePacketIn packet)
        {
            if (!(client is GameClient))
                return;
            GameClient c = client as GameClient;

            if (c.Player == null)
                return;

            c.Player.Rotation.X = packet.ReadInt();
            c.Player.Rotation.Y = packet.ReadInt();
            c.Player.Rotation.Z = packet.ReadInt();
        }
예제 #3
0
        public void HandlePacket(BaseClient client, BasePacketIn packet)
        {
            if (!(client is GameClient))
                return;
            GameClient c = client as GameClient;

            if (c.Player == null)
                return;

            c.Player.Position.X = (float)packet.ReadInt();
            c.Player.Position.Y = (float)packet.ReadInt();
            c.Player.Position.Z = (float)packet.ReadInt();

            //Console.WriteLine(c.Index + " " + c.Player.X + " " + c.Player.Y + " " + c.Player.Z);
        }
예제 #4
0
 public AbstractPacketLib(BaseClient client)
 {
     _client = client;
 }
예제 #5
0
파일: BaseServer.cs 프로젝트: icegbq/Orion
        protected virtual BaseClient onClientConnect(TcpClient tcpClient)
        {
            BaseClient client = new BaseClient(tcpClient);

            return client;
        }