예제 #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();
 }
예제 #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);
 }