Пример #1
0
 public void CreateAndCheckInitialization()
 {
     Booty.Create();
     Assert.IsNull(Booty.Container);
     Assert.AreEqual(false, Booty.Started);
     Assert.AreEqual(false, Booty.Stopped);
 }
Пример #2
0
    public void CreateBooty()
    {
        foreach (Vector3Int index in cellIndex)
        {
            Booty booty = GardenPool.instance.GetFromPool(GardenPool.instance.bootyPrefab.GetComponent <NetworkIdentity>().assetId).GetComponent <Booty>();
            //update actor and grids in client view
            booty.transform.SetParent(transform);

            // spawn actor on client, custom spawn handler is called
            NetworkServer.Spawn(booty.gameObject, connectionToClient);
            booty.cellIndex.Add(index);

            //add actor to actors list
            bootyList.Add(booty.GetComponent <NetworkIdentity>());
        }
    }
Пример #3
0
        public void UpdateInventoryCategories()
        {
            Weapons.Clear();
            ActionItems.Clear();

            foreach (var gameItemQuantity in _Inventory)
            {
                if (gameItemQuantity.GameItem is Weapon)
                {
                    Weapons.Add(gameItemQuantity);
                }
                if (gameItemQuantity.GameItem is ActionItem)
                {
                    ActionItems.Add(gameItemQuantity);
                }
                if (gameItemQuantity.GameItem is Currency)
                {
                    Booty.Add(gameItemQuantity);
                }
            }
        }
Пример #4
0
 public void UpdateBooty(Booty model)
 {
     bootyRepository.Update(model);
 }
Пример #5
0
 public void CreatIsCorrectInstance()
 {
     Assert.IsInstanceOf <IBootstrapperConfiguration>(Booty.Create());
 }
Пример #6
0
 public void SimpleCreate()
 {
     Assert.IsNotNull(Booty.Create());
 }
Пример #7
0
 public void Setup()
 {
     Booty.Shutdown();
 }
Пример #8
0
 public Currency(int itemID, string itemName, string itemDescription, int itemDurability, int currencyValue, Booty bootyType, int healthChange, int itemCost)
     : base(itemID, itemName, itemDescription, itemDurability, currencyValue, healthChange, itemCost)
 {
     BootyType = bootyType;
 }