Esempio n. 1
0
        public static ResourceAuto CreateResourceRequest(string path, bool readable = false)
        {
            var item = new ResourceAuto();

            item.async            = true;
            item.id               = ResourceBase.GetJavaHash(path);
            item.controlType      = ControlType.Show | ControlType.Hide;
            item.loadableResource = true;
            item.readableTexture  = readable;
            item.resourcesPath    = path;

            return(item);
        }
Esempio n. 2
0
        public static ResourceAuto CreateWebRequest(string path, int cacheVersion = 0, bool readable = false)
        {
            var item = new ResourceAuto();

            item.async           = true;
            item.id              = ResourceBase.GetJavaHash(path);
            item.controlType     = ControlType.Show | ControlType.Hide;
            item.loadableWeb     = true;
            item.cacheVersion    = cacheVersion;
            item.readableTexture = readable;
            item.webPath         = path;

            return(item);
        }
Esempio n. 3
0
 public ResourceAuto(ResourceAuto other) : base(other)
 {
     this.controlType = other.controlType;
 }