/// <summary> /// Добавить оборудование в базовый объект /// </summary> /// <param name="luaName">Lua-имя</param> /// <param name="name">Имя</param> /// <param name="value">Значение</param> public void AddEquipment(string luaName, string name, string value) { var equipment = new EquipmentParameter(luaName, name, value); equipment.Owner = this; Equipment.Add(equipment); }
public override BaseParameter Clone() { var newProperty = new EquipmentParameter(LuaName, Name, DefaultValue, DisplayObjects); newProperty.SetNewValue(Value); newProperty.NeedDisable = NeedDisable; return(newProperty); }