Exemple #1
0
 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");
 }
Exemple #3
0
 public override void Restore(StateInfo state)
 {
     _sound.Position = state.Get<Int64>("Position");
 }
Exemple #4
0
 public void Restore(StateInfo state)
 {
     _delta = state.Get<Vector2>("_delta");
     Position = state.Get<Vector2>("Position");
 }
Exemple #5
0
 void IStateRecorder.Restore(StateInfo state)
 {
     _currentWheelIndex = state.Get<int>("currentWheelIndex");
     _currentZoom = state.Get<float>("currentZoom");
 }
Exemple #6
0
 void IStateRecorder.Restore(StateInfo state)
 {
     _sky.Alpha = state.Get<float>("alpha");
 }
Exemple #7
0
 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"));
 }
Exemple #8
0
 public void Restore(StateInfo state)
 {
     _resolutions.CurrentIndex = state.Get<int>("currentResolution");
     Render.Viewport.SetFullScreen(state.Get<bool>("fullScreen"));
 }