public void Encode(GameBitBuffer buffer) { buffer.WriteFloat32(Scale); Position.Encode(buffer); lookAt.Encode(buffer); Orientation.Encode(buffer); buffer.WriteInt(32, WorldID); }
public override void Encode(GameBitBuffer buffer) { buffer.WriteInt(32, ActorId); buffer.WriteFloat32(Scale); Position.Encode(buffer); Orientation.Encode(buffer); buffer.WriteInt(32, MapId); }
public CfgEncoder Add(string tag, Quaternion q) => Add(tag, q.Encode());