Ejemplo 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;
            }
        }
Ejemplo n.º 2
0
 public bool TryGetResourceData(ResourceType type, long id, out BMSResourceData result)
 {
     return(resourceDatas.TryGetValue(new ResourceId(type, id), out result));
 }