Пример #1
0
 public void pack(Kaminari.IMarshal marshal, Kaminari.Packet packet)
 {
     packet.getData().write((ulong)this.id);
     packet.getData().write((ushort)this.type);
     packet.getData().write((float)this.x);
     packet.getData().write((float)this.z);
 }
Пример #2
0
 public void pack(Kaminari.IMarshal marshal, Kaminari.Packet packet)
 {
     packet.getData().write((string)this.username);
     packet.getData().write((ulong)this.password0);
     packet.getData().write((ulong)this.password1);
     packet.getData().write((ulong)this.password2);
     packet.getData().write((ulong)this.password3);
 }
Пример #3
0
 public void pack(Kaminari.IMarshal marshal, Kaminari.Packet packet)
 {
     packet.getData().write((byte)this.data.Count);
     foreach (EntityUpdate val in this.data)
     {
         val.pack(marshal, packet);
     }
 }
Пример #4
0
 public void pack(Kaminari.IMarshal marshal, Kaminari.Packet packet)
 {
     packet.getData().write((float)this.x);
     packet.getData().write((float)this.z);
     packet.getData().write((float)this.speed);
     packet.getData().write((float)this.vx);
     packet.getData().write((float)this.vz);
     packet.getData().write((byte)this.seq);
     packet.getData().write((ushort)this.frame);
 }
Пример #5
0
 public void pack(Kaminari.IMarshal marshal, Kaminari.Packet packet)
 {
     packet.getData().write(this.x.hasValue());
     if (this.x.hasValue())
     {
         packet.getData().write((uint)this.x.getValue());
     }
     packet.getData().write((byte)this.y.Count);
     foreach (SpawnData val in this.y)
     {
         val.pack(marshal, packet);
     }
     packet.getData().write((int)this.z);
     packet.getData().write(this.w.hasValue());
     if (this.w.hasValue())
     {
         packet.getData().write((byte)this.w.getValue().Count);
         foreach (bool val in this.w.getValue())
         {
             packet.getData().write((bool)val);
         }
     }
 }
Пример #6
0
 public void pack(Kaminari.IMarshal marshal, Kaminari.Packet packet)
 {
     packet.getData().write((bool)this.success);
 }
Пример #7
0
 public void pack(Kaminari.IMarshal marshal, Kaminari.Packet packet)
 {
     packet.getData().write((ulong)this.id);
 }
Пример #8
0
 public void pack(Kaminari.IMarshal marshal, Kaminari.Packet packet)
 {
     packet.getData().write((byte)this.index);
 }
Пример #9
0
 public void pack(Kaminari.IMarshal marshal, Kaminari.Packet packet)
 {
     packet.getData().write((uint)this.version);
 }
Пример #10
0
 public void pack(Kaminari.IMarshal marshal, Kaminari.Packet packet)
 {
     packet.getData().write((string)this.name);
 }
Пример #11
0
 public void pack(Kaminari.IMarshal marshal, Kaminari.Packet packet)
 {
     packet.getData().write((char)this.x);
     packet.getData().write((char)this.y);
     packet.getData().write((byte)this.seq);
 }
Пример #12
0
 public void pack(Kaminari.IMarshal marshal, Kaminari.Packet packet)
 {
     packet.getData().write((byte)this.num_characters);
 }