Encode() public method

public Encode ( GameBitBuffer buffer ) : void
buffer GameBitBuffer
return void
Exemplo n.º 1
0
 public void Encode(GameBitBuffer buffer)
 {
     buffer.WriteFloat32(Scale);
     Position.Encode(buffer);
     lookAt.Encode(buffer);
     Orientation.Encode(buffer);
     buffer.WriteInt(32, WorldID);
 }
Exemplo n.º 2
0
 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, ActorId);
     buffer.WriteFloat32(Scale);
     Position.Encode(buffer);
     Orientation.Encode(buffer);
     buffer.WriteInt(32, MapId);
 }
Exemplo n.º 3
0
 public CfgEncoder Add(string tag, Quaternion q) => Add(tag, q.Encode());