Пример #1
0
        public CharacterVM(GameVM game, AmfObject obj)
            : base(obj)
        {
            Game = game;

            Breasts = new BreastArrayVM(game, GetObj("breastRows"));
            Vaginas = new VaginaArrayVM(game, GetObj("vaginas"));
            Cocks   = new CockArrayVM(game, GetObj("cocks"));
            Ass     = new VaginaVM(game, GetObj("ass"));

            List <String> types = new List <String>();

            foreach (XmlItemType type in XmlData.Current.ItemTypes)
            {
                types.Add(type.Name);
            }

            var containers = new List <ItemContainerVM>();

            _inventory = new ItemContainerVM(this, "Inventory", types);
            containers.Add(_inventory);
            UpdateInventory();

            // Complete slots creation
            ItemContainers = new UpdatableCollection <ItemContainerVM>(containers);
        }
Пример #2
0
        public CharacterVM(GameVM game, AmfObject obj)
            : base(obj)
        {
            Game = game;

            Breasts = new BreastArrayVM(game, GetObj("breastRows"));
            Vaginas = new VaginaArrayVM(game, GetObj("vaginas"));
            Cocks   = new CockArrayVM(game, GetObj("cocks"));
            Ass     = new VaginaVM(game, GetObj("ass"));

            var containers = new List <ItemContainerVM>();

            _inventory = new ItemContainerVM(this, "Inventory", ItemCategories.All);
            containers.Add(_inventory);
            UpdateInventory();

            // Complete slots creation
            ItemContainers = new UpdatableCollection <ItemContainerVM>(containers);
        }