protected override void LoadList(IntPtr ptr, string type, uint size) { switch (type) { case "lins": Instruments = new LINS(ptr, size); break; case "wvpl": WavePool = new WVPL(ptr, size); break; default: throw new Exception("[File]Unknown ListType"); } }
protected override void ReadList(IntPtr ptr, IntPtr ptrTerm, string listType) { switch (listType) { case "lins": Instruments = new LINS(ptr, ptrTerm); break; case "wvpl": WavePool = new WVPL(ptr, ptrTerm); break; case "INFO": Info = new Info(ptr, ptrTerm); break; default: throw new Exception(string.Format("Unknown ListType [{0}]", listType)); } }