public InputFrame(bool sprinting, Vector2 movement, uint tick) { Sprinting = new serialization.types.Bool(sprinting); Movement = new serialization.types.Vector2(movement); Tick = new serialization.types.Uint32(tick); InitSerializableMembers(Sprinting, Movement, Tick); }
public PlayerState(PlayerState player) : base() { Position = new serialization.types.Vector2(Vector2.zero); Rotation = new serialization.types.Float(player.Rotation.Value); GUID = new serialization.types.Int32(player.GUID.Value); InitSerializableMembers(Position, Rotation, GUID); }
public InputFrame() { Sprinting = new serialization.types.Bool(false); Movement = new serialization.types.Vector2(Vector2.zero); Tick = new serialization.types.Uint32(0); InitSerializableMembers(Sprinting, Movement, Tick); }
public PlayerState(int playerID) : base() { Position = new serialization.types.Vector2(Vector2.zero); Rotation = new serialization.types.Float(0); GUID = new serialization.types.Int32(playerID); InitSerializableMembers(Position, Rotation, GUID); }