Ejemplo n.º 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));
        }
Ejemplo n.º 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);
        }