コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }