void OnCreatePlayer(NetState netstate, PacketReader reader){
if (!netstate.IsVerifyLogin) return;
var p1 = reader.ReadUTF8String();
var p2 = (TradeAge.Server.Entity.Character.Sex)reader.ReadByte();
module.OnCreatePlayer(netstate,p1,p2);
}
예제 #2
0
 void OnMove(NetState netstate, PacketReader reader)
 {
     if (!netstate.IsVerifyLogin) return;
     var p1 = new DateTime(reader.ReadLong64());
      var p2 = Vector3ReadProxy.Read(reader);
      var p3 = QuaternionReadProxy.Read(reader);
     var p4 = reader.ReadFloat();
     var p5 = reader.ReadFloat();
     var p6 = (TradeAge.Server.Entity.Ship.SpeedUpTypes)reader.ReadByte();
     module.OnMove(netstate,p1,p2,p3,p4,p5,p6);
 }