Пример #1
0
        public static IntPtr GetItemRecordPointerFromId(uint id, ulong guid = 0ul)
        {
            if (_getItemInfoBlockById == null)
            {
                _getItemInfoBlockById =
                    Manager.Memory.RegisterDelegate <GetItemInfoBlockByIdDelegate>(
                        (IntPtr)Pointers.WDB.DdItemCache_GetInfoBlockByID);
            }

            return(_getItemInfoBlockById((IntPtr)Pointers.WDB.WdbItemCache, id, ref guid));
        }
Пример #2
0
        public static IntPtr GetItemRecordPointerFromId(uint id, ulong guid = 0ul)
        {
            if (_getItemInfoBlockById == null)
                _getItemInfoBlockById = Manager.Memory.RegisterDelegate<GetItemInfoBlockByIdDelegate>((IntPtr)Pointers.WDB.DdItemCache_GetInfoBlockByID);

            return _getItemInfoBlockById((IntPtr)Pointers.WDB.WdbItemCache, id, ref guid);
        }