public AmmunitionInventory(AvatarInventory parentInventory, AmmunitionType ammunitionType) : base(parentInventory) { Amount = 0; AmmunitionType = ammunitionType; CapacityLevels = GetCapacityLevelByAmmunitionType(ammunitionType); }
public Avatar(Texture2D texture, Rectangle body, Controller controller) : base(texture, body, controller) { this.Speed = GameConfig.GameObjectStandards.AvatarStandards.StandardAvatarSpeed; this.Inventory = new AvatarInventory(this); this.InteractableGameObjectsPrivate = new List <GameObject>(); this.DrawPriority = DrawPriority.High; }
public void SetupAvatar(string avatarOptions) { inventory = GameObject.FindObjectOfType <AvatarInventory>(); string[] splitOptions = avatarOptions.Split(','); for (int i = 0; i < splitOptions.Length; i++) { SetPart((PartType)i, Int32.Parse(splitOptions[i])); } }
public SodaInventory(AvatarInventory parentInventory) : base(parentInventory) { this.CapacityLevels = new int[] { 2, 5, 10, 15 }; }
public MedKitInventory(AvatarInventory parentInventory) : base(parentInventory) { this.CapacityLevels = new int[] { 1, 2, 3, 4 }; }
public BandageInventory(AvatarInventory parentInventory) : base(parentInventory) { this.CapacityLevels = new int[] { 5, 10, 15, 30 }; }
public SubInventory(AvatarInventory parentInventory) { this.ParentInventory = parentInventory; }