NScumm.Scumm.ScummEngine.GetObjectIndex C# (CSharp) Method

GetObjectIndex() protected method

protected GetObjectIndex ( int obj ) : int
obj int
return int
        protected int GetObjectIndex(int obj)
        {
            if (obj < 1)
                return -1;

            for (var i = (_objs.Length - 1); i >= 0; i--)
            {
                if (_objs[i].Number == obj)
                    return i;
            }
            return -1;
        }
ScummEngine