// 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(); }
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); }