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