/// <summary> /// A constructor that receives a ResourceCount to express the base resource maximums. /// </summary> /// <param name="baseResourceMaximums">A ResourceCount containing the base maximums. /// This instance will be cloned and will never be modified as a result of being passed here.</param> public ItemInventory(ResourceCount baseResourceMaximums) { BaseResourceMaximums = baseResourceMaximums.Clone(); ResourceCapacityChanges = new ResourceCount(); }
/// <summary> /// Returns a copy of the current resource count in this in-game state. /// </summary> /// <returns></returns> public ResourceCount GetCurrentResources() { return(Resources.Clone()); }