Esempio n. 1
0
 public virtual Encoder Encode(Encoder e)
 {
     e.WriteString(encodedType)
      .WriteString(Id)
      .WriteFloat(Position.X)
      .WriteFloat(Position.Y)
      .WriteFloat(Position.Z)
      .WriteFloat(Rotation)
      .WriteFloat(Scale)
      .WriteFloat(ObjectClass.CollisionRadius)
      .WriteFloat(MotionObject.Velocity.X)
      .WriteFloat(MotionObject.Velocity.Y)
      .WriteFloat(MotionObject.Velocity.Z)
      .WriteByte((byte)Team);
     return e;
 }