public IList <LineDisplayItem> GetListItems() { LineDisplayItem[] items = new LineDisplayItem[Count]; for (int i = 0; i < Count; i++) { items[i] = new LineDisplayItem("Screen " + i.ToString("X"), this[i].Offset, this[i].Size, Level.Rom.data); } return(items); }
IList <LineDisplayItem> IRomDataParentObject.GetListItems() { LineDisplayItem[] items = new LineDisplayItem[DataCount]; for (int i = 0; i < DataCount; i++) { items[i] = new LineDisplayItem("Password entry " + i.ToString("X"), DataOffset + i * 2, 2, rom.data); } return(items); }
private static LineDisplayItem CreateLineDisplayItem(ItemSeeker seeker) { string text = seeker.ItemType.ToString(); if (seeker.ItemType == ItemTypeIndex.PowerUp) { text += ": " + seeker.PowerUp.ToString(); } var newItem = new LineDisplayItem(text, seeker.itemOffset, seeker.CurrentItemDataSize, seeker.Data); return(newItem); }
// Todo: fix this shitB IList <LineDisplayItem> IRomDataParentObject.GetListItems() { LineDisplayItem[] items = new LineDisplayItem[Count]; for (int i = 0; i < Count; i++) { items[i] = new LineDisplayItem( "Structure " + i.ToString("X"), this[i].Offset, this[i].Size, level.Rom.data ); } return(items); }