Esempio n. 1
0
        public Resource AddResource(string name, string path)
        {
            if (m_resources.ContainsKey(name))
            {
                return null;
            }

            var res = new Resource(name, Path.Combine(Environment.CurrentDirectory, path));
            res.Manager = this;
            res.DownloadConfiguration = m_configuration.GetDownloadConfiguration(name);

            AddResource(res);

            if (res.Parse())
            {
                return res;
            }

            m_resources.Remove(res.Name);

            return null;
        }
Esempio n. 2
0
 public ResourceUpdater(Resource resource, DownloadConfiguration config)
 {
     m_resource = resource;
     m_uploadURL = config.UploadURL;
     m_baseURL = config.BaseURL;
 }
Esempio n. 3
0
 public void AddResource(Resource res)
 {
     m_resources[res.Name] = res;
 }
Esempio n. 4
0
        public ScriptEnvironment(Resource resource)
        {
            m_resource = resource;

            InstanceID = (uint)ms_instanceGen.Next();
        }