/// <summary>
/// Initializes a new instance of the <see cref="CharacterTemplateEquippedTable"/> class.
/// </summary>
/// <param name="chance">The initial value for the corresponding property.</param>
/// <param name="characterTemplateID">The initial value for the corresponding property.</param>
/// <param name="iD">The initial value for the corresponding property.</param>
/// <param name="itemTemplateID">The initial value for the corresponding property.</param>
        public CharacterTemplateEquippedTable(DemoGame.ItemChance @chance, DemoGame.CharacterTemplateID @characterTemplateID, System.Int32 @iD, DemoGame.ItemTemplateID @itemTemplateID)
        {
            this.Chance = (DemoGame.ItemChance)@chance;
            this.CharacterTemplateID = (DemoGame.CharacterTemplateID)@characterTemplateID;
            this.ID             = (System.Int32)@iD;
            this.ItemTemplateID = (DemoGame.ItemTemplateID)@itemTemplateID;
        }
Exemplo n.º 2
0
/// <summary>
/// Initializes a new instance of the <see cref="CharacterQuestStatusKillsTable"/> class.
/// </summary>
/// <param name="characterID">The initial value for the corresponding property.</param>
/// <param name="characterTemplateID">The initial value for the corresponding property.</param>
/// <param name="count">The initial value for the corresponding property.</param>
/// <param name="questID">The initial value for the corresponding property.</param>
        public CharacterQuestStatusKillsTable(DemoGame.CharacterID @characterID, DemoGame.CharacterTemplateID @characterTemplateID, System.UInt16 @count, NetGore.Features.Quests.QuestID @questID)
        {
            this.CharacterID         = (DemoGame.CharacterID)@characterID;
            this.CharacterTemplateID = (DemoGame.CharacterTemplateID)@characterTemplateID;
            this.Count   = (System.UInt16)@count;
            this.QuestID = (NetGore.Features.Quests.QuestID)@questID;
        }
Exemplo n.º 3
0
/// <summary>
/// Initializes a new instance of the <see cref="CharacterTemplateInventoryTable"/> class.
/// </summary>
/// <param name="chance">The initial value for the corresponding property.</param>
/// <param name="characterTemplateID">The initial value for the corresponding property.</param>
/// <param name="iD">The initial value for the corresponding property.</param>
/// <param name="itemTemplateID">The initial value for the corresponding property.</param>
/// <param name="max">The initial value for the corresponding property.</param>
/// <param name="min">The initial value for the corresponding property.</param>
        public CharacterTemplateInventoryTable(DemoGame.ItemChance @chance, DemoGame.CharacterTemplateID @characterTemplateID, System.Int32 @iD, DemoGame.ItemTemplateID @itemTemplateID, System.Byte @max, System.Byte @min)
        {
            this.Chance = (DemoGame.ItemChance)@chance;
            this.CharacterTemplateID = (DemoGame.CharacterTemplateID)@characterTemplateID;
            this.ID             = (System.Int32)@iD;
            this.ItemTemplateID = (DemoGame.ItemTemplateID)@itemTemplateID;
            this.Max            = (System.Byte)@max;
            this.Min            = (System.Byte)@min;
        }
Exemplo n.º 4
0
/// <summary>
/// Initializes a new instance of the <see cref="MapSpawnTable"/> class.
/// </summary>
/// <param name="amount">The initial value for the corresponding property.</param>
/// <param name="characterTemplateID">The initial value for the corresponding property.</param>
/// <param name="height">The initial value for the corresponding property.</param>
/// <param name="iD">The initial value for the corresponding property.</param>
/// <param name="mapID">The initial value for the corresponding property.</param>
/// <param name="width">The initial value for the corresponding property.</param>
/// <param name="x">The initial value for the corresponding property.</param>
/// <param name="y">The initial value for the corresponding property.</param>
        public MapSpawnTable(System.Byte @amount, DemoGame.CharacterTemplateID @characterTemplateID, System.Nullable <System.UInt16> @height, DemoGame.MapSpawnValuesID @iD, NetGore.World.MapID @mapID, System.Nullable <System.UInt16> @width, System.Nullable <System.UInt16> @x, System.Nullable <System.UInt16> @y)
        {
            this.Amount = (System.Byte)@amount;
            this.CharacterTemplateID = (DemoGame.CharacterTemplateID)@characterTemplateID;
            this.Height = (System.Nullable <System.UInt16>)@height;
            this.ID     = (DemoGame.MapSpawnValuesID)@iD;
            this.MapID  = (NetGore.World.MapID)@mapID;
            this.Width  = (System.Nullable <System.UInt16>)@width;
            this.X      = (System.Nullable <System.UInt16>)@x;
            this.Y      = (System.Nullable <System.UInt16>)@y;
        }
/// <summary>
/// Sets the <paramref name="value"/> of a column by the database column's name.
/// </summary>
/// <param name="columnName">The database name of the column to get the <paramref name="value"/> for.</param>
/// <param name="value">Value to assign to the column.</param>
        public void SetValue(System.String columnName, System.Object value)
        {
            switch (columnName)
            {
            case "counter":
                this.Counter = (System.Int64)value;
                break;

            case "npc_event_counter_id":
                this.NPCEventCounterID = (System.Byte)value;
                break;

            case "npc_template_id":
                this.NPCTemplateID = (DemoGame.CharacterTemplateID)value;
                break;

            default:
                throw new ArgumentException("Field not found.", "columnName");
            }
        }
Exemplo n.º 6
0
/// <summary>
/// Sets the <paramref name="value"/> of a column by the database column's name.
/// </summary>
/// <param name="columnName">The database name of the column to get the <paramref name="value"/> for.</param>
/// <param name="value">Value to assign to the column.</param>
public void SetValue(System.String columnName, System.Object value)
{
switch (columnName)
{
case "counter":
this.Counter = (System.Int64)value;
break;

case "npc_event_counter_id":
this.NPCEventCounterID = (System.Byte)value;
break;

case "npc_template_id":
this.NPCTemplateID = (DemoGame.CharacterTemplateID)value;
break;

default:
throw new ArgumentException("Field not found.","columnName");
}
}
Exemplo n.º 7
0
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this EventCountersNpcTable.
/// </summary>
/// <param name="source">The IEventCountersNpcTable to copy the values from.</param>
public void CopyValuesFrom(IEventCountersNpcTable source)
{
this.Counter = (System.Int64)source.Counter;
this.NPCEventCounterID = (System.Byte)source.NPCEventCounterID;
this.NPCTemplateID = (DemoGame.CharacterTemplateID)source.NPCTemplateID;
}
Exemplo n.º 8
0
/// <summary>
/// Initializes a new instance of the <see cref="EventCountersNpcTable"/> class.
/// </summary>
/// <param name="counter">The initial value for the corresponding property.</param>
/// <param name="nPCEventCounterID">The initial value for the corresponding property.</param>
/// <param name="nPCTemplateID">The initial value for the corresponding property.</param>
public EventCountersNpcTable(System.Int64 @counter, System.Byte @nPCEventCounterID, DemoGame.CharacterTemplateID @nPCTemplateID)
{
this.Counter = (System.Int64)@counter;
this.NPCEventCounterID = (System.Byte)@nPCEventCounterID;
this.NPCTemplateID = (DemoGame.CharacterTemplateID)@nPCTemplateID;
}
Exemplo n.º 9
0
/// <summary>
/// Initializes a new instance of the <see cref="WorldStatsCountUserKillNpcTable"/> class.
/// </summary>
/// <param name="count">The initial value for the corresponding property.</param>
/// <param name="lastUpdate">The initial value for the corresponding property.</param>
/// <param name="nPCTemplateID">The initial value for the corresponding property.</param>
/// <param name="userID">The initial value for the corresponding property.</param>
        public WorldStatsCountUserKillNpcTable(System.Int32 @count, System.DateTime @lastUpdate, DemoGame.CharacterTemplateID @nPCTemplateID, DemoGame.CharacterID @userID)
        {
            this.Count         = (System.Int32)@count;
            this.LastUpdate    = (System.DateTime)@lastUpdate;
            this.NPCTemplateID = (DemoGame.CharacterTemplateID)@nPCTemplateID;
            this.UserID        = (DemoGame.CharacterID)@userID;
        }
Exemplo n.º 10
0
/// <summary>
/// Initializes a new instance of the <see cref="CharacterTemplateTable"/> class.
/// </summary>
/// <param name="aIID">The initial value for the corresponding property.</param>
/// <param name="allianceID">The initial value for the corresponding property.</param>
/// <param name="bodyID">The initial value for the corresponding property.</param>
/// <param name="chatDialog">The initial value for the corresponding property.</param>
/// <param name="exp">The initial value for the corresponding property.</param>
/// <param name="giveCash">The initial value for the corresponding property.</param>
/// <param name="giveExp">The initial value for the corresponding property.</param>
/// <param name="iD">The initial value for the corresponding property.</param>
/// <param name="level">The initial value for the corresponding property.</param>
/// <param name="moveSpeed">The initial value for the corresponding property.</param>
/// <param name="name">The initial value for the corresponding property.</param>
/// <param name="respawn">The initial value for the corresponding property.</param>
/// <param name="shopID">The initial value for the corresponding property.</param>
/// <param name="statPoints">The initial value for the corresponding property.</param>
/// <param name="statAgi">The initial value for the corresponding property.</param>
/// <param name="statDefence">The initial value for the corresponding property.</param>
/// <param name="statInt">The initial value for the corresponding property.</param>
/// <param name="statMaxhit">The initial value for the corresponding property.</param>
/// <param name="statMaxhp">The initial value for the corresponding property.</param>
/// <param name="statMaxmp">The initial value for the corresponding property.</param>
/// <param name="statMinhit">The initial value for the corresponding property.</param>
/// <param name="statStr">The initial value for the corresponding property.</param>
        public CharacterTemplateTable(System.Nullable <NetGore.AI.AIID> @aIID, DemoGame.AllianceID @allianceID, DemoGame.BodyID @bodyID, System.Nullable <NetGore.Features.NPCChat.NPCChatDialogID> @chatDialog, System.Int32 @exp, System.Int32 @giveCash, System.Int32 @giveExp, DemoGame.CharacterTemplateID @iD, System.Int16 @level, System.UInt16 @moveSpeed, System.String @name, System.UInt16 @respawn, System.Nullable <NetGore.Features.Shops.ShopID> @shopID, System.Int32 @statPoints, System.Int16 @statAgi, System.Int16 @statDefence, System.Int16 @statInt, System.Int16 @statMaxhit, System.Int16 @statMaxhp, System.Int16 @statMaxmp, System.Int16 @statMinhit, System.Int16 @statStr)
        {
            this.AIID       = (System.Nullable <NetGore.AI.AIID>)@aIID;
            this.AllianceID = (DemoGame.AllianceID)@allianceID;
            this.BodyID     = (DemoGame.BodyID)@bodyID;
            this.ChatDialog = (System.Nullable <NetGore.Features.NPCChat.NPCChatDialogID>)@chatDialog;
            this.Exp        = (System.Int32)@exp;
            this.GiveCash   = (System.Int32)@giveCash;
            this.GiveExp    = (System.Int32)@giveExp;
            this.ID         = (DemoGame.CharacterTemplateID)@iD;
            this.Level      = (System.Int16)@level;
            this.MoveSpeed  = (System.UInt16)@moveSpeed;
            this.Name       = (System.String)@name;
            this.Respawn    = (System.UInt16)@respawn;
            this.ShopID     = (System.Nullable <NetGore.Features.Shops.ShopID>)@shopID;
            this.StatPoints = (System.Int32)@statPoints;
            this.SetStat((DemoGame.StatType)DemoGame.StatType.Agi, (System.Int32)@statAgi);
            this.SetStat((DemoGame.StatType)DemoGame.StatType.Defence, (System.Int32)@statDefence);
            this.SetStat((DemoGame.StatType)DemoGame.StatType.Int, (System.Int32)@statInt);
            this.SetStat((DemoGame.StatType)DemoGame.StatType.MaxHit, (System.Int32)@statMaxhit);
            this.SetStat((DemoGame.StatType)DemoGame.StatType.MaxHP, (System.Int32)@statMaxhp);
            this.SetStat((DemoGame.StatType)DemoGame.StatType.MaxMP, (System.Int32)@statMaxmp);
            this.SetStat((DemoGame.StatType)DemoGame.StatType.MinHit, (System.Int32)@statMinhit);
            this.SetStat((DemoGame.StatType)DemoGame.StatType.Str, (System.Int32)@statStr);
        }
Exemplo n.º 11
0
/// <summary>
/// Initializes a new instance of the <see cref="CharacterTemplateQuestProviderTable"/> class.
/// </summary>
/// <param name="characterTemplateID">The initial value for the corresponding property.</param>
/// <param name="questID">The initial value for the corresponding property.</param>
        public CharacterTemplateQuestProviderTable(DemoGame.CharacterTemplateID @characterTemplateID, NetGore.Features.Quests.QuestID @questID)
        {
            this.CharacterTemplateID = (DemoGame.CharacterTemplateID)@characterTemplateID;
            this.QuestID             = (NetGore.Features.Quests.QuestID)@questID;
        }
/// <summary>
/// Initializes a new instance of the <see cref="CharacterTemplateSkillTable"/> class.
/// </summary>
/// <param name="characterTemplateID">The initial value for the corresponding property.</param>
/// <param name="skillID">The initial value for the corresponding property.</param>
        public CharacterTemplateSkillTable(DemoGame.CharacterTemplateID @characterTemplateID, DemoGame.SkillType @skillID)
        {
            this.CharacterTemplateID = (DemoGame.CharacterTemplateID)@characterTemplateID;
            this.SkillID             = (DemoGame.SkillType)@skillID;
        }
Exemplo n.º 13
0
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this EventCountersNpcTable.
/// </summary>
/// <param name="source">The IEventCountersNpcTable to copy the values from.</param>
        public void CopyValuesFrom(IEventCountersNpcTable source)
        {
            this.Counter           = (System.Int64)source.Counter;
            this.NPCEventCounterID = (System.Byte)source.NPCEventCounterID;
            this.NPCTemplateID     = (DemoGame.CharacterTemplateID)source.NPCTemplateID;
        }
Exemplo n.º 14
0
/// <summary>
/// Initializes a new instance of the <see cref="EventCountersNpcTable"/> class.
/// </summary>
/// <param name="counter">The initial value for the corresponding property.</param>
/// <param name="nPCEventCounterID">The initial value for the corresponding property.</param>
/// <param name="nPCTemplateID">The initial value for the corresponding property.</param>
        public EventCountersNpcTable(System.Int64 @counter, System.Byte @nPCEventCounterID, DemoGame.CharacterTemplateID @nPCTemplateID)
        {
            this.Counter           = (System.Int64)@counter;
            this.NPCEventCounterID = (System.Byte)@nPCEventCounterID;
            this.NPCTemplateID     = (DemoGame.CharacterTemplateID)@nPCTemplateID;
        }
Exemplo n.º 15
0
/// <summary>
/// Initializes a new instance of the <see cref="QuestRequireKillTable"/> class.
/// </summary>
/// <param name="amount">The initial value for the corresponding property.</param>
/// <param name="characterTemplateID">The initial value for the corresponding property.</param>
/// <param name="questID">The initial value for the corresponding property.</param>
        public QuestRequireKillTable(System.UInt16 @amount, DemoGame.CharacterTemplateID @characterTemplateID, NetGore.Features.Quests.QuestID @questID)
        {
            this.Amount = (System.UInt16)@amount;
            this.CharacterTemplateID = (DemoGame.CharacterTemplateID)@characterTemplateID;
            this.QuestID             = (NetGore.Features.Quests.QuestID)@questID;
        }