MUDServer.Player.OnLocationChange C# (CSharp) Метод

OnLocationChange() защищенный Метод

protected OnLocationChange ( Location oldLocation, Location newLocation ) : void
oldLocation Location
newLocation Location
Результат 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);
        }