public void UnSerialize(IOReader reader) { this.eType = reader.ReadInt(); this.flags = (ResourceEntryTypeFlag)eType; this.ID = ASCIIEncoding.ASCII.GetBytes(eType.UnMakeID()); this.resData =reader.ReadUInt(); }
private ResourceEntry FindResourceEntry(ResourceEntryTypeFlag flag) { foreach (ResourceEntry info in this.m_ResourcesInfo) { if ((info.flags & flag) != 0) return info; else continue; } return null; }