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; }
public ResourceUpdater(Resource resource, DownloadConfiguration config) { m_resource = resource; m_uploadURL = config.UploadURL; m_baseURL = config.BaseURL; }
public void AddResource(Resource res) { m_resources[res.Name] = res; }
public ScriptEnvironment(Resource resource) { m_resource = resource; InstanceID = (uint)ms_instanceGen.Next(); }