Esempio n. 1
0
        protected void AddResource(ResourceType type, long id, string dataPath, object additionalData = null)
        {
            ResourceId      resId   = new ResourceId(type, id);
            BMSResourceData resData = new BMSResourceData
            {
                type           = type,
                resourceId     = id,
                dataPath       = dataPath,
                additionalData = additionalData
            };

            resourceDatas[resId] = resData;
            if (id < 0)
            {
                metaResourceDatas[resId] = resData;
            }
        }
Esempio n. 2
0
 public bool TryGetResourceData(ResourceType type, long id, out BMSResourceData result)
 {
     return(resourceDatas.TryGetValue(new ResourceId(type, id), out result));
 }