Пример #1
0
        /// <summary>
        /// Default Constructor for the Type Mapper.
        /// </summary>
        /// <param name="item">Related Engine Item</param>
        /// <param name="property">Related Engine Property</param>
        public GoodsState(Item item, GoodsProperty property) : base(item, property)
        {
            // Bind Amount
            Amount = property.Amount;
            property.OnAmountChanged += (i, v) => { Amount = v; };

            // Bind Capacity
            Capacity = property.Capacity;
            property.OnCapacityChanged += (i, v) => { Capacity = v; };
        }
Пример #2
0
        /// <summary>
        /// Default Constructor for the Type Mapper.
        /// </summary>
        /// <param name="item">Related Engine Item</param>
        /// <param name="property">Related Engine Property</param>
        public GoodsState(Item item, GoodsProperty property)
            : base(item, property)
        {
            // Bind Amount
            Amount = property.Amount;
            property.OnAmountChanged += (i, v) => { Amount = v; };

            // Bind Capacity
            Capacity = property.Capacity;
            property.OnCapacityChanged += (i, v) => { Capacity = v; };
        }