public Resource(ResourceType type, string version) { Type = type; Version = version; TimeStamp = ResourceSignature.TimeStamp; ID = new ResourceID(); }
public void Open(string path) { using (var r = new BinaryReader(File.OpenRead(path))) { if (!ResourceSignature.Read(r)) { throw new Exception( "Invalid resource [" + path + "] signature."); } Type = StringToType(r.ReadString()); Version = r.ReadString(); TimeStamp = r.ReadString(); ID = new ResourceID(r); ReadData(r); } }
public ResourceLink(string path) { FilePath = path; Type = Resource.GetType(path); ID = Resource.GetID(path); }
public ResourceLink() { FilePath = null; Type = ResourceType.MissingFile; ID = null; }