Esempio n. 1
0
 // If the player is added to a map, update the player FOV when the player moves
 private void OnMoved(object?sender, GameObjectPropertyChanged <Point> e)
 {
     CalculateFOV();
 }
Esempio n. 2
0
 private void OnPlayerMoved(object?sender, GameObjectPropertyChanged <Point> e)
 {
     _mapRenderer.Surface.View = _mapRenderer.Surface.View.WithCenter(e.NewValue);
     Map.PlayerFOV.Calculate(e.NewValue, Game.Player.Awareness);
 }