コード例 #1
0
 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);
 }
コード例 #2
0
ファイル: PasswordData.cs プロジェクト: snarfblam/editroid
        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);
        }
コード例 #3
0
ファイル: ItemLoader.cs プロジェクト: snarfblam/editroid
        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);
        }
コード例 #4
0
        // 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);
        }