public void Read(BinaryReader br) { byte len = br.ReadByte(); file = new string(br.ReadChars(len)); type = (MpkEntryType)br.ReadByte(); }
public static IMpkEntry GetType(MpkEntryType typ) { if(!init) InitTypes(); if(typeHash[typ]==null) return null; Type t = (Type)typeHash[typ]; ConstructorInfo ci = t.GetConstructor(new Type[]{}); return (IMpkEntry)ci.Invoke(new Object[]{}); }
public static IMpkEntry GetType(MpkEntryType typ) { if (!init) { InitTypes(); } if (typeHash[typ] == null) { return(null); } Type t = (Type)typeHash[typ]; ConstructorInfo ci = t.GetConstructor(new Type[] {}); return((IMpkEntry)ci.Invoke(new Object[] {})); }
public MpkEntryHeader(string file, MpkEntryType type){this.file=file;this.type=type;}
public MpkEntryHeader(string file, MpkEntryType type) { this.file = file; this.type = type; }