private void OnPlayerEnteredArea(Player player, BoundingBox.AreaEventArgs e)
 {
     if (player.MemberOfFaction != _currentOwners)
     {
         StartTimerForPlayer(player);
     }
 }
Esempio n. 2
0
        void OnPlayerLeftArea(Player player, BoundingBox.AreaEventArgs e)
        {
            Console.Out.WriteLine("OwnershipChangeChecker.OnPlayerLeftArea");
            EvalateIfCapturing(e.AreaBeingWatched.PlayersInArea);

            // TODO: tell player who left what happened
            Console.Out.WriteLine("tell player they stopped capturing.");
        }
Esempio n. 3
0
 void OnPlayerEnteredArea(Player player, BoundingBox.AreaEventArgs e)
 {
     Console.Out.WriteLine("OwnershipChangeChecker.OnPlayerEnteredArea");
     EvalateIfCapturing(e.AreaBeingWatched.PlayersInArea);
 }
 private void OnPlayerLeftArea(Player player, BoundingBox.AreaEventArgs e)
 {
     StopTimerForPlayer(player);
 }