//ValinorRegen.cs //Author : Dre using System; using DOL.Database; using DOL.Database.Attributes; using DOL.Events; using DOL.GS; namespace DOL.Database { [DataTable(TableName="Valinor_Regen")] public class DBRegen : WorldObject { #region Table static bool m_autoSave; private ushort m_radius; //Rayon du regen private int m_percent; //Pourcentage donné par intervalle private uint m_intervalle; //Intervalle du regen en 100ms private bool m_RegenHealth; //Si regen vie private bool m_RegenEndu; //Si regen endu private bool m_RegenMana; //Si regen mana [DataElement(AllowDbNull=false)] public ushort Radius { get { return m_radius; } set { Dirty = true; m_radius = value; } } [DataElement(AllowDbNull=false)] public int Percent { get { return m_percent; } set { Dirty = true; m_percent = value; } } [DataElement(AllowDbNull=false)] public uint Intervalle { get { return m_intervalle; } set { Dirty = true; m_intervalle = value; } } [DataElement(AllowDbNull=false)] public bool RegenHealth { get { return m_RegenHealth; } set { Dirty = true; m_RegenHealth = value; } } [DataElement(AllowDbNull=false)] public bool RegenEndu { get { return m_RegenEndu; } set { Dirty = true; m_RegenEndu = value; } } [DataElement(AllowDbNull=false)] public bool RegenMana { get { return m_RegenMana; } set { Dirty = true; m_RegenMana = value; } } override public bool AutoSave { get { return m_autoSave; } set { m_autoSave = value; } } #endregion [ScriptLoadedEvent] public static void ScriptLoaded(DOLEvent e, object sender, EventArgs args) { GameServer.Database.RegisterDataObject(typeof(DBRegen)); GameServer.Database.LoadDatabaseTable(typeof(DBRegen)); } } }