Ejemplo n.º 1
0
 public void Draw()
 {
     for (int s = 0, timelineCount = itemTimelines.Count; s < timelineCount; s++)
     {
         ItemTimeline timeline = itemTimelines[s];
         timeline.Draw();
     }
 }
Ejemplo n.º 2
0
        public ItemManager(List <Item> items)
        {
            for (int i = 0, count = items.Count; i < count; i++)
            {
                Item item = items[i];

                if (item && item.isMovable)
                {
                    ItemTimeline itemTimeline = new ItemTimeline(item.id);
                    itemTimelines.Add(itemTimeline);
                }
            }

            allItems = items;
        }
Ejemplo n.º 3
0
        public void AddEntries(int time)
        {
            for (int i = 0, count = allItems.Count; i < count; i++)
            {
                Item item = allItems[i];

                for (int s = 0, timelineCount = itemTimelines.Count; s < timelineCount; s++)
                {
                    ItemTimeline timeline = itemTimelines[s];

                    if (timeline.id == item.id)
                    {
                        timeline.AddEntry(time, null, null, null);
                    }
                }
            }
        }