예제 #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);
        }