MUDServer.Player.OnLocationChange C# (CSharp) Méthode

OnLocationChange() protected méthode

protected OnLocationChange ( Location oldLocation, Location newLocation ) : void
oldLocation Location
newLocation Location
Résultat void
        protected override void OnLocationChange(Location oldLocation, Location newLocation)
        {
            // If there is no name, we won't have our player data instantiated.
            if (_Name == null)
                return;

            RemoveExitCommands(oldLocation);
            AddExitCommands(newLocation);
        }