public CommandListGroup(Fighter fighter, uint CRC) { ContextMenuStrip = _menu; base.Fighter = fighter; base.CRC = CRC; Text = $"[{CRC:X8}]"; for (int i = 0; i < 4; i++) { if (fighter[(ACMDType)i].EventLists.ContainsKey(CRC)) lists.Add(fighter[(ACMDType)i].EventLists[CRC]); else { CommandList cml = new CommandList(CRC, fighter[(ACMDType)i]); cml.Initialize(); lists.Add(cml); } } }
public CommandListGroup(Fighter fighter, uint CRC) { _fighter = fighter; _crc = CRC; Text = $"[{CRC:X8}]"; for (int i = 0; i < 4; i++) { if (fighter[i].EventLists.ContainsKey(CRC)) lists.Add(fighter[i].EventLists[CRC]); else { CommandList cml = new CommandList(CRC, fighter[i]); cml.Initialize(); lists.Add(cml); } } }
public Fighter OpenFighter(string dirPath) { Fighter f = new Fighter(); try { f.Main = OpenFile(dirPath + "/game.bin"); f.GFX = OpenFile(dirPath + "/effect.bin"); f.SFX = OpenFile(dirPath + "/sound.bin"); f.Expression = OpenFile(dirPath + "/expression.bin"); f.Main.Type = ACMDType.Main; f.GFX.Type = ACMDType.GFX; f.SFX.Type = ACMDType.SFX; f.Expression.Type = ACMDType.Expression; f.MotionTable = ParseMTable(new DataSource(FileMap.FromFile(dirPath + "/motion.mtable")), Runtime.WorkingEndian); } catch (FileNotFoundException x) { return null; } Runtime.isRoot = true; Runtime.rootPath = dirPath; Runtime.Instance.Text = String.Format("Main Form - {0}", dirPath); return f; }