/// <summary>
/// Initializes a new instance of the <see cref="WorldStatsCountUserConsumeItemTable"/> class.
/// </summary>
/// <param name="count">The initial value for the corresponding property.</param>
/// <param name="itemTemplateID">The initial value for the corresponding property.</param>
/// <param name="lastUpdate">The initial value for the corresponding property.</param>
/// <param name="userID">The initial value for the corresponding property.</param>
        public WorldStatsCountUserConsumeItemTable(System.Int32 @count, DemoGame.ItemTemplateID @itemTemplateID, System.DateTime @lastUpdate, DemoGame.CharacterID @userID)
        {
            this.Count          = (System.Int32)@count;
            this.ItemTemplateID = (DemoGame.ItemTemplateID)@itemTemplateID;
            this.LastUpdate     = (System.DateTime)@lastUpdate;
            this.UserID         = (DemoGame.CharacterID)@userID;
        }
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this CharacterTemplateEquippedTable.
/// </summary>
/// <param name="source">The ICharacterTemplateEquippedTable to copy the values from.</param>
        public void CopyValuesFrom(ICharacterTemplateEquippedTable source)
        {
            this.Chance = (DemoGame.ItemChance)source.Chance;
            this.CharacterTemplateID = (DemoGame.CharacterTemplateID)source.CharacterTemplateID;
            this.ID             = (System.Int32)source.ID;
            this.ItemTemplateID = (DemoGame.ItemTemplateID)source.ItemTemplateID;
        }
/// <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;
        }
/// <summary>
/// Initializes a new instance of the <see cref="WorldStatsUserConsumeItemTable"/> class.
/// </summary>
/// <param name="iD">The initial value for the corresponding property.</param>
/// <param name="itemTemplateID">The initial value for the corresponding property.</param>
/// <param name="mapID">The initial value for the corresponding property.</param>
/// <param name="userID">The initial value for the corresponding property.</param>
/// <param name="when">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 WorldStatsUserConsumeItemTable(System.UInt32 @iD, DemoGame.ItemTemplateID @itemTemplateID, System.Nullable <NetGore.World.MapID> @mapID, DemoGame.CharacterID @userID, System.DateTime @when, System.UInt16 @x, System.UInt16 @y)
        {
            this.ID             = (System.UInt32)@iD;
            this.ItemTemplateID = (DemoGame.ItemTemplateID)@itemTemplateID;
            this.MapID          = (System.Nullable <NetGore.World.MapID>)@mapID;
            this.UserID         = (DemoGame.CharacterID)@userID;
            this.When           = (System.DateTime)@when;
            this.X = (System.UInt16)@x;
            this.Y = (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 "item_template_event_counter_id":
                this.ItemTemplateEventCounterId = (System.Byte)value;
                break;

            case "item_template_id":
                this.ItemTemplateID = (DemoGame.ItemTemplateID)value;
                break;

            default:
                throw new ArgumentException("Field not found.", "columnName");
            }
        }
/// <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 "chance":
                this.Chance = (DemoGame.ItemChance)value;
                break;

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

            case "id":
                this.ID = (System.Int32)value;
                break;

            case "item_template_id":
                this.ItemTemplateID = (DemoGame.ItemTemplateID)value;
                break;

            default:
                throw new ArgumentException("Field not found.", "columnName");
            }
        }
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this EventCountersItemTemplateTable.
/// </summary>
/// <param name="source">The IEventCountersItemTemplateTable to copy the values from.</param>
public void CopyValuesFrom(IEventCountersItemTemplateTable source)
{
this.Counter = (System.Int64)source.Counter;
this.ItemTemplateEventCounterId = (System.Byte)source.ItemTemplateEventCounterId;
this.ItemTemplateID = (DemoGame.ItemTemplateID)source.ItemTemplateID;
}
/// <summary>
/// Initializes a new instance of the <see cref="EventCountersItemTemplateTable"/> class.
/// </summary>
/// <param name="counter">The initial value for the corresponding property.</param>
/// <param name="itemTemplateEventCounterId">The initial value for the corresponding property.</param>
/// <param name="itemTemplateID">The initial value for the corresponding property.</param>
public EventCountersItemTemplateTable(System.Int64 @counter, System.Byte @itemTemplateEventCounterId, DemoGame.ItemTemplateID @itemTemplateID)
{
this.Counter = (System.Int64)@counter;
this.ItemTemplateEventCounterId = (System.Byte)@itemTemplateEventCounterId;
this.ItemTemplateID = (DemoGame.ItemTemplateID)@itemTemplateID;
}
/// <summary>
/// Initializes a new instance of the <see cref="QuestRequireFinishItemTable"/> class.
/// </summary>
/// <param name="amount">The initial value for the corresponding property.</param>
/// <param name="itemTemplateID">The initial value for the corresponding property.</param>
/// <param name="questID">The initial value for the corresponding property.</param>
        public QuestRequireFinishItemTable(System.Byte @amount, DemoGame.ItemTemplateID @itemTemplateID, NetGore.Features.Quests.QuestID @questID)
        {
            this.Amount         = (System.Byte)@amount;
            this.ItemTemplateID = (DemoGame.ItemTemplateID)@itemTemplateID;
            this.QuestID        = (NetGore.Features.Quests.QuestID)@questID;
        }
/// <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 "chance":
this.Chance = (DemoGame.ItemChance)value;
break;

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

case "id":
this.ID = (System.Int32)value;
break;

case "item_template_id":
this.ItemTemplateID = (DemoGame.ItemTemplateID)value;
break;

default:
throw new ArgumentException("Field not found.","columnName");
}
}
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this EventCountersItemTemplateTable.
/// </summary>
/// <param name="source">The IEventCountersItemTemplateTable to copy the values from.</param>
        public void CopyValuesFrom(IEventCountersItemTemplateTable source)
        {
            this.Counter = (System.Int64)source.Counter;
            this.ItemTemplateEventCounterId = (System.Byte)source.ItemTemplateEventCounterId;
            this.ItemTemplateID             = (DemoGame.ItemTemplateID)source.ItemTemplateID;
        }
Example #12
0
/// <summary>
/// Initializes a new instance of the <see cref="ItemTemplateTable"/> class.
/// </summary>
/// <param name="actionDisplayID">The initial value for the corresponding property.</param>
/// <param name="description">The initial value for the corresponding property.</param>
/// <param name="equippedBody">The initial value for the corresponding property.</param>
/// <param name="graphic">The initial value for the corresponding property.</param>
/// <param name="height">The initial value for the corresponding property.</param>
/// <param name="hP">The initial value for the corresponding property.</param>
/// <param name="iD">The initial value for the corresponding property.</param>
/// <param name="mP">The initial value for the corresponding property.</param>
/// <param name="name">The initial value for the corresponding property.</param>
/// <param name="range">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="statReqAgi">The initial value for the corresponding property.</param>
/// <param name="statReqInt">The initial value for the corresponding property.</param>
/// <param name="statReqStr">The initial value for the corresponding property.</param>
/// <param name="statStr">The initial value for the corresponding property.</param>
/// <param name="type">The initial value for the corresponding property.</param>
/// <param name="value">The initial value for the corresponding property.</param>
/// <param name="weaponType">The initial value for the corresponding property.</param>
/// <param name="width">The initial value for the corresponding property.</param>
        public ItemTemplateTable(System.Nullable <NetGore.Features.ActionDisplays.ActionDisplayID> @actionDisplayID, System.String @description, System.String @equippedBody, NetGore.GrhIndex @graphic, System.Byte @height, DemoGame.SPValueType @hP, DemoGame.ItemTemplateID @iD, DemoGame.SPValueType @mP, System.String @name, System.UInt16 @range, System.Int16 @statAgi, System.Int16 @statDefence, System.Int16 @statInt, System.Int16 @statMaxhit, System.Int16 @statMaxhp, System.Int16 @statMaxmp, System.Int16 @statMinhit, System.Int16 @statReqAgi, System.Int16 @statReqInt, System.Int16 @statReqStr, System.Int16 @statStr, DemoGame.ItemType @type, System.Int32 @value, DemoGame.WeaponType @weaponType, System.Byte @width)
        {
            this.ActionDisplayID = (System.Nullable <NetGore.Features.ActionDisplays.ActionDisplayID>)@actionDisplayID;
            this.Description     = (System.String)@description;
            this.EquippedBody    = (System.String)@equippedBody;
            this.Graphic         = (NetGore.GrhIndex)@graphic;
            this.Height          = (System.Byte)@height;
            this.HP    = (DemoGame.SPValueType)@hP;
            this.ID    = (DemoGame.ItemTemplateID)@iD;
            this.MP    = (DemoGame.SPValueType)@mP;
            this.Name  = (System.String)@name;
            this.Range = (System.UInt16)@range;
            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.SetReqStat((DemoGame.StatType)DemoGame.StatType.Agi, (System.Int32)@statReqAgi);
            this.SetReqStat((DemoGame.StatType)DemoGame.StatType.Int, (System.Int32)@statReqInt);
            this.SetReqStat((DemoGame.StatType)DemoGame.StatType.Str, (System.Int32)@statReqStr);
            this.SetStat((DemoGame.StatType)DemoGame.StatType.Str, (System.Int32)@statStr);
            this.Type       = (DemoGame.ItemType)@type;
            this.Value      = (System.Int32)@value;
            this.WeaponType = (DemoGame.WeaponType)@weaponType;
            this.Width      = (System.Byte)@width;
        }
Example #13
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;
        }
Example #14
0
/// <summary>
/// Initializes a new instance of the <see cref="ShopItemTable"/> class.
/// </summary>
/// <param name="itemTemplateID">The initial value for the corresponding property.</param>
/// <param name="shopID">The initial value for the corresponding property.</param>
        public ShopItemTable(DemoGame.ItemTemplateID @itemTemplateID, NetGore.Features.Shops.ShopID @shopID)
        {
            this.ItemTemplateID = (DemoGame.ItemTemplateID)@itemTemplateID;
            this.ShopID         = (NetGore.Features.Shops.ShopID)@shopID;
        }
/// <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 "item_template_event_counter_id":
this.ItemTemplateEventCounterId = (System.Byte)value;
break;

case "item_template_id":
this.ItemTemplateID = (DemoGame.ItemTemplateID)value;
break;

default:
throw new ArgumentException("Field not found.","columnName");
}
}
Example #16
0
/// <summary>
/// Initializes a new instance of the <see cref="WorldStatsCountItemCreateTable"/> class.
/// </summary>
/// <param name="count">The initial value for the corresponding property.</param>
/// <param name="itemTemplateID">The initial value for the corresponding property.</param>
/// <param name="lastUpdate">The initial value for the corresponding property.</param>
        public WorldStatsCountItemCreateTable(System.Int32 @count, DemoGame.ItemTemplateID @itemTemplateID, System.DateTime @lastUpdate)
        {
            this.Count          = (System.Int32)@count;
            this.ItemTemplateID = (DemoGame.ItemTemplateID)@itemTemplateID;
            this.LastUpdate     = (System.DateTime)@lastUpdate;
        }
/// <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;
}
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this CharacterTemplateEquippedTable.
/// </summary>
/// <param name="source">The ICharacterTemplateEquippedTable to copy the values from.</param>
public void CopyValuesFrom(ICharacterTemplateEquippedTable source)
{
this.Chance = (DemoGame.ItemChance)source.Chance;
this.CharacterTemplateID = (DemoGame.CharacterTemplateID)source.CharacterTemplateID;
this.ID = (System.Int32)source.ID;
this.ItemTemplateID = (DemoGame.ItemTemplateID)source.ItemTemplateID;
}
/// <summary>
/// Initializes a new instance of the <see cref="EventCountersItemTemplateTable"/> class.
/// </summary>
/// <param name="counter">The initial value for the corresponding property.</param>
/// <param name="itemTemplateEventCounterId">The initial value for the corresponding property.</param>
/// <param name="itemTemplateID">The initial value for the corresponding property.</param>
        public EventCountersItemTemplateTable(System.Int64 @counter, System.Byte @itemTemplateEventCounterId, DemoGame.ItemTemplateID @itemTemplateID)
        {
            this.Counter = (System.Int64)@counter;
            this.ItemTemplateEventCounterId = (System.Byte)@itemTemplateEventCounterId;
            this.ItemTemplateID             = (DemoGame.ItemTemplateID)@itemTemplateID;
        }