示例#1
0
        public override bool TryGetObject(byte objectType, string objectId, out NebulaObject obj)
        {
            Item item;
            bool result = ItemCache.TryGetItem(objectType, objectId, out item);

            obj = item;
            return(result);
        }
示例#2
0
        public bool HasItem(string ID, byte type)
        {
            Item it;

            if (ItemCache.TryGetItem(type, ID, out it))
            {
                return(it != null);
            }
            return(false);
        }