public override void Write(SnapshotCharacterCore core) { core.X = MathHelper.RoundToInt(Position.x); core.Y = MathHelper.RoundToInt(Position.y); core.VelX = MathHelper.RoundToInt(Velocity.x * 256.0f); core.VelY = MathHelper.RoundToInt(Velocity.y * 256.0f); core.HookState = HookState; core.HookTick = HookTick; core.HookX = MathHelper.RoundToInt(HookPosition.x); core.HookY = MathHelper.RoundToInt(HookPosition.y); core.HookDx = MathHelper.RoundToInt(HookDirection.x * 256.0f); core.HookDy = MathHelper.RoundToInt(HookDirection.y * 256.0f); core.HookedPlayer = HookedPlayer; core.Jumped = Jumped; core.Direction = Direction; core.Angle = Angle; }
public abstract void Write(SnapshotCharacterCore core);