public void Move(DogSE.Common.Vector3 postion,DogSE.Common.Vector3 direction)
 {
     var pw = new PacketWriter(1100);
     pw.WriteStruct(postion);
     pw.WriteStruct(direction);
     NetState.Send(pw);
 }
 /// <summary>
 /// 
 /// </summary>
 public static void Write(DogSE.Library.Maths.Quaternion obj, PacketWriter pw)
 {
     pw.Write(obj.X);
     pw.Write(obj.Y);
     pw.Write(obj.Z);
     pw.Write(obj.W);
 }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="time"></param>
 /// <param name="postion"></param>
 /// <param name="rotation"></param>
 /// <param name="speed"></param>
 /// <param name="rotationRate"></param>
 /// <param name="speedUpType"></param>
 public void Move(DateTime time,DogSE.Library.Maths.Vector3 postion,DogSE.Library.Maths.Quaternion rotation,float speed,float rotationRate,TradeAge.Client.Entity.Ship.SpeedUpTypes speedUpType)
 {
     var pw = PacketWriter.AcquireContent(1100);
     pw.Write(time.Ticks);
     Vector3WriteProxy.Write(postion, pw);
     QuaternionWriteProxy.Write(rotation, pw);
     pw.Write(speed);
     pw.Write(rotationRate);
     pw.Write((byte)speedUpType);
     NetState.Send(pw);PacketWriter.ReleaseContent(pw);
 }
Exemple #4
0
 internal abstract void OnSpriteMove(int playerId,DogSE.Common.Vector3 postion,DogSE.Common.Vector3 direction);
Exemple #5
0
 internal abstract void OnEnterSceneInfo(DogSE.Common.Vector3 postion,DogSE.Common.Vector3 direction);
 /// <summary>
 /// 
 /// </summary>
 public static void Write(DogSE.Library.Maths.Vector3 obj, PacketWriter pw)
 {
     pw.Write(obj.X);
     pw.Write(obj.Y);
     pw.Write(obj.Z);
 }