示例#1
0
        private void AddAndTrackItems()
        {
            IList <ItemRecord> records = TileMatrix.GetItemMetadata();

            foreach (ItemRecord record in records)
            {
                Item item = (Item)Activator.CreateInstance(record.Type);
                item.StartPosition = record.Position;
                game.AddAndTrack(item);
            }
        }