Esempio n. 1
0
 public void CreateAndCheckInitialization()
 {
     Booty.Create();
     Assert.IsNull(Booty.Container);
     Assert.AreEqual(false, Booty.Started);
     Assert.AreEqual(false, Booty.Stopped);
 }
Esempio n. 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>());
        }
    }
Esempio n. 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);
                }
            }
        }
Esempio n. 4
0
 public void UpdateBooty(Booty model)
 {
     bootyRepository.Update(model);
 }
Esempio n. 5
0
 public void CreatIsCorrectInstance()
 {
     Assert.IsInstanceOf <IBootstrapperConfiguration>(Booty.Create());
 }
Esempio n. 6
0
 public void SimpleCreate()
 {
     Assert.IsNotNull(Booty.Create());
 }
Esempio n. 7
0
 public void Setup()
 {
     Booty.Shutdown();
 }
Esempio n. 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;
 }