NScumm.Scumm.ScummEngine.GetBoxMask C# (CSharp) Метод

GetBoxMask() приватный Метод

private GetBoxMask ( byte boxNum ) : int
boxNum byte
Результат int
        internal int GetBoxMask(byte boxNum)
        {
            if (Game.Version <= 3 && boxNum == 255)
                return 1;

            // WORKAROUND for bug #847827: This is a bug in the data files, as it also
            // occurs with the original engine. We work around it here anyway.
            if (_game.GameId == Scumm.IO.GameId.Indy4 && _currentRoom == 225 && _roomResource == 94 && boxNum == 8)
                return 0;

            var box = GetBoxBase(boxNum);
            if (box == null)
                return 0;

            return box.Mask;
        }
ScummEngine