Ejemplo n.º 1
0
        /// <summary>
        ///    Service method called by newly instantiated components.
        /// </summary>
        /// <remarks>
        ///    Yes, again "friend" method.
        /// </remarks>
        public void RegisterComponent(EquipmentComponent component)
        {
            Assert.IsTrue(component.OwnerEquipment == this,
                          "Tried to register component owned by another equipment.");
            Assert.IsFalse(_components.ContainsValue(component),
                           "Tried to register component multiple times.");

            _components.Add(component.GetType(), component);
        }
 protected EquipmentComponentData(EquipmentComponent component)
 {
 }