private void AssignObject(int virtualNumber, SpecialFunctionHandler special) { int realNumber = RealObject (virtualNumber); if (realNumber != GlobalConstants.NOTHING) _objectIndex[realNumber].SpecialFunction += special; else if (!_miniMud) Log ("SYSERR: Attempt to assign special function to a non-existant object #" + virtualNumber); }
private void AssignRoom(int virtualNumber, SpecialFunctionHandler special) { int realNumber = RealRoom (virtualNumber); if (realNumber != GlobalConstants.NOWHERE) _rooms[realNumber].SpecialFunction += special; else if (!_miniMud) Log ("SYSERR: Attempt to assign special function to a non-existant room #" + virtualNumber); }
private void AssignMobile(int virtualNumber, SpecialFunctionHandler special) { int realNumber = RealMobile (virtualNumber); if (realNumber != GlobalConstants.NOBODY) _mobileIndex[realNumber].SpecialFunction += special; else if (!_miniMud) Log ("SYSERR: Attempt to assign special function to a non-existant mobile #"+ virtualNumber); }