public Moves() { Util.unpackMini(Directory.GetFiles("move")[0], "WD"); movelist[0] = ""; sortedmoves = (string[])movelist.Clone(); Array.Sort(sortedmoves); InitializeComponent(); Setup(); }
internal static int[] getTypes() { Util.unpackMini(Directory.GetFiles("move")[0], "WD"); string[] f2 = Directory.GetFiles("move"); int[] moveTypes = new int[f2.Length]; for (int i = 0; i < f2.Length; i++) { moveTypes[i] = File.ReadAllBytes(f2[i])[0]; } Util.packMini("move", "WD", "0", ".bin", "move"); return(moveTypes); }