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

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

protected RedefineBuiltinCursorHotspot ( int index, int x, int y ) : void
index int
x int
y int
Результат void
        protected void RedefineBuiltinCursorHotspot(int index, int x, int y)
        {
            // Cursor image in both Looms are based on images from charset.
            // This function is *only* supported for Loom!
            if (_game.GameId != Scumm.IO.GameId.Loom)
                throw new NotSupportedException("RedefineBuiltinCursorHotspot is *only* supported for Loom!");
            if (index < 0 || index >= 4)
                throw new ArgumentException("index");

            _cursorHotspots[index * 2] = (byte)x;
            _cursorHotspots[index * 2 + 1] = (byte)y;
        }
    }
ScummEngine