MUDServer.Player.OnLocationChange C# (CSharp) Method

OnLocationChange() protected method

protected OnLocationChange ( Location oldLocation, Location newLocation ) : void
oldLocation Location
newLocation Location
return 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);
        }