Ejemplo n.º 1
0
        public void SpriteEnter(NetState netstate, TradeAge.Server.Entity.Character.SimplePlayer obj)
        {
            var           pw            = new PacketWriter(1102);
            PacketProfile packetProfile = PacketProfile.GetOutgoingProfile(1102);

            if (packetProfile != null)
            {
                packetProfile.RegConstruct();
            }
            SimplePlayerWriteProxy.Write(obj, pw); netstate.Send(pw); pw.Dispose();
        }
Ejemplo n.º 2
0
        public void EnterSceneInfo(NetState netstate, TradeAge.Server.Entity.Character.SimplePlayer player)
        {
            var           pw            = PacketWriter.AcquireContent(1101);
            PacketProfile packetProfile = PacketProfile.GetOutgoingProfile(1101);

            if (packetProfile != null)
            {
                packetProfile.RegConstruct();
            }
            SimplePlayerWriteProxy.Write(player, pw);
            netstate.Send(pw);
            if (packetProfile != null)
            {
                packetProfile.Record(pw.Length);
            }
            PacketWriter.ReleaseContent(pw);
        }