Mercurial > repos > IBDev-IBBoard.WarFoundry.API.Tests
view API/Objects/Mock/MockNumericAmountUnitEquipmentItem.cs @ 99:dd384f35a96f
Re #324: Add saving of Race and System data to files
* Start to migrate Army saving to same structure
* Add first test
* Give MockArmy a specific ID
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Wed, 09 Mar 2011 20:55:35 +0000 |
parents | d48e73488838 |
children |
line wrap: on
line source
// This file (MockUnitEquipmentItem.cs) is a part of the IBBoard.WarFoundry.API.Tests project and is copyright 2009 IBBoard // // The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license. using System; using IBBoard.Limits; namespace IBBoard.WarFoundry.API.Objects.Mock { public class MockNumericAmountUnitEquipmentItem : UnitEquipmentItem { public MockNumericAmountUnitEquipmentItem () : this(5) { } public MockNumericAmountUnitEquipmentItem (int limit) : this(limit, limit) { } public MockNumericAmountUnitEquipmentItem(int min, int max) : base(new MockEquipmentItem(), new MockUnitType()) { MinLimit = new NumericSizeConstrainedLimit(min); MaxLimit = new NumericSizeConstrainedLimit(max); } } }