public override void Restore(StateInfo state) { _body.Position = state.Get<Vector2>("Position"); _body.Rotation = state.Get<float>("Rotation"); _body.LinearVelocity = state.Get<Vector2>("LinearVelocity"); _body.AngularVelocity = state.Get<float>("AngularVelocity"); }
private void Restore(StateInfo state) { Render.Camera.Zoom = state.Get<float>("currentZoom"); Render.Camera.Position = state.Get<Vector2>("currentPosition"); _targetZoom = state.Get<float>("targetZoom"); _previousZoom = state.Get<float>("previousZoom"); _previousPosition = state.Get<Vector2>("previousPosition"); }
public override void Restore(StateInfo state) { _sound.Position = state.Get<Int64>("Position"); }
public void Restore(StateInfo state) { _delta = state.Get<Vector2>("_delta"); Position = state.Get<Vector2>("Position"); }
void IStateRecorder.Restore(StateInfo state) { _currentWheelIndex = state.Get<int>("currentWheelIndex"); _currentZoom = state.Get<float>("currentZoom"); }
void IStateRecorder.Restore(StateInfo state) { _sky.Alpha = state.Get<float>("alpha"); }
public void Restore(StateInfo state) { var width = state.Get<int>("width"); var height = state.Get<int>("height"); SetResolution(width, height); SetFullScreen(state.Get<bool>("fullScreen")); }
public void Restore(StateInfo state) { _resolutions.CurrentIndex = state.Get<int>("currentResolution"); Render.Viewport.SetFullScreen(state.Get<bool>("fullScreen")); }