public void AddHackList(int index, ListView LV, string aName, int aAddress, HackType aHackType, string Script, int offset) { ListViewItem lvi = null; switch (aHackType) { case HackType._Byte: case HackType._2Bytes: case HackType._4Bytes: lvi = new ListViewItem(new string[] { aName, aAddress.ToString("X8"), aHackType.ToString(), "?" }); break; case HackType._Pointer: lvi = new ListViewItem(new string[] { aName, string.Format("P[{0:X8}]+{1:X4}", aAddress, offset), "4bytes Pointer", "?" }); break; case HackType.AssemblyScript: lvi = new ListViewItem(new string[] { aName, " - ", "Auto Assemble Script", Script }); break; default: break; } if (index == -1) LV.Items.Add(lvi); else LV.Items.Insert(index, lvi); }
public void AddHackList(int index, ListView LV, string aName, int aAddress, HackType aHackType, string Script, int offset) { ListViewItem lvi = null; switch (aHackType) { case HackType._Byte: case HackType._2Bytes: case HackType._4Bytes: lvi = new ListViewItem(new string[] { aName, aAddress.ToString("X8"), aHackType.ToString(), "?" }); break; case HackType._Pointer: lvi = new ListViewItem(new string[] { aName, string.Format("P[{0:X8}]+{1:X4}", aAddress, offset), "4bytes Pointer", "?" }); break; case HackType.AssemblyScript: lvi = new ListViewItem(new string[] { aName, " - ", "Auto Assemble Script", Script }); break; default: break; } if (index == -1) { LV.Items.Add(lvi); } else { LV.Items.Insert(index, lvi); } }
public Hack(int id, string name, string description, int minLevel, HackType type, int minCpuLevel, int minRamLevel, double reward) { this.id = id; this.name = name; this.description = description; this.minLevel = minLevel; this.type = type; this.minCpuLevel = minCpuLevel; this.minRamLevel = minRamLevel; this.reward = reward; }
public void setHackType(HackType type) { this.type = type; }