Esempio n. 1
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 "item_template_id":
                this.ItemTemplateID = (DemoGame.ItemTemplateID)value;
                break;

            case "shop_id":
                this.ShopID = (NetGore.Features.Shops.ShopID)value;
                break;

            default:
                throw new ArgumentException("Field not found.", "columnName");
            }
        }
Esempio n. 2
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 "shop_event_counter_id":
                this.ShopEventCounterId = (System.Byte)value;
                break;

            case "shop_id":
                this.ShopID = (NetGore.Features.Shops.ShopID)value;
                break;

            default:
                throw new ArgumentException("Field not found.", "columnName");
            }
        }
Esempio n. 3
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 "count":
                this.Count = (System.Int32)value;
                break;

            case "last_update":
                this.LastUpdate = (System.DateTime)value;
                break;

            case "shop_id":
                this.ShopID = (NetGore.Features.Shops.ShopID)value;
                break;

            default:
                throw new ArgumentException("Field not found.", "columnName");
            }
        }
Esempio n. 4
0
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this WorldStatsCountShopSellTable.
/// </summary>
/// <param name="source">The IWorldStatsCountShopSellTable to copy the values from.</param>
        public void CopyValuesFrom(IWorldStatsCountShopSellTable source)
        {
            this.Count      = (System.Int32)source.Count;
            this.LastUpdate = (System.DateTime)source.LastUpdate;
            this.ShopID     = (NetGore.Features.Shops.ShopID)source.ShopID;
        }
Esempio n. 5
0
/// <summary>
/// Initializes a new instance of the <see cref="WorldStatsCountShopSellTable"/> 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="shopID">The initial value for the corresponding property.</param>
        public WorldStatsCountShopSellTable(System.Int32 @count, System.DateTime @lastUpdate, NetGore.Features.Shops.ShopID @shopID)
        {
            this.Count      = (System.Int32)@count;
            this.LastUpdate = (System.DateTime)@lastUpdate;
            this.ShopID     = (NetGore.Features.Shops.ShopID)@shopID;
        }
Esempio n. 6
0
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this EventCountersShopTable.
/// </summary>
/// <param name="source">The IEventCountersShopTable to copy the values from.</param>
        public void CopyValuesFrom(IEventCountersShopTable source)
        {
            this.Counter            = (System.Int64)source.Counter;
            this.ShopEventCounterId = (System.Byte)source.ShopEventCounterId;
            this.ShopID             = (NetGore.Features.Shops.ShopID)source.ShopID;
        }
Esempio n. 7
0
/// <summary>
/// Initializes a new instance of the <see cref="EventCountersShopTable"/> class.
/// </summary>
/// <param name="counter">The initial value for the corresponding property.</param>
/// <param name="shopEventCounterId">The initial value for the corresponding property.</param>
/// <param name="shopID">The initial value for the corresponding property.</param>
        public EventCountersShopTable(System.Int64 @counter, System.Byte @shopEventCounterId, NetGore.Features.Shops.ShopID @shopID)
        {
            this.Counter            = (System.Int64)@counter;
            this.ShopEventCounterId = (System.Byte)@shopEventCounterId;
            this.ShopID             = (NetGore.Features.Shops.ShopID)@shopID;
        }
Esempio n. 8
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>
/// Copies the values from the given <paramref name="source"/> into this WorldStatsCountShopBuyTable.
/// </summary>
/// <param name="source">The IWorldStatsCountShopBuyTable to copy the values from.</param>
public void CopyValuesFrom(IWorldStatsCountShopBuyTable source)
{
this.Count = (System.Int32)source.Count;
this.LastUpdate = (System.DateTime)source.LastUpdate;
this.ShopID = (NetGore.Features.Shops.ShopID)source.ShopID;
}
Esempio n. 10
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 "shop_event_counter_id":
this.ShopEventCounterId = (System.Byte)value;
break;

case "shop_id":
this.ShopID = (NetGore.Features.Shops.ShopID)value;
break;

default:
throw new ArgumentException("Field not found.","columnName");
}
}
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this EventCountersShopTable.
/// </summary>
/// <param name="source">The IEventCountersShopTable to copy the values from.</param>
public void CopyValuesFrom(IEventCountersShopTable source)
{
this.Counter = (System.Int64)source.Counter;
this.ShopEventCounterId = (System.Byte)source.ShopEventCounterId;
this.ShopID = (NetGore.Features.Shops.ShopID)source.ShopID;
}
/// <summary>
/// Initializes a new instance of the <see cref="EventCountersShopTable"/> class.
/// </summary>
/// <param name="counter">The initial value for the corresponding property.</param>
/// <param name="shopEventCounterId">The initial value for the corresponding property.</param>
/// <param name="shopID">The initial value for the corresponding property.</param>
public EventCountersShopTable(System.Int64 @counter, System.Byte @shopEventCounterId, NetGore.Features.Shops.ShopID @shopID)
{
this.Counter = (System.Int64)@counter;
this.ShopEventCounterId = (System.Byte)@shopEventCounterId;
this.ShopID = (NetGore.Features.Shops.ShopID)@shopID;
}
Esempio n. 14
0
/// <summary>
/// Initializes a new instance of the <see cref="ShopTable"/> class.
/// </summary>
/// <param name="canBuy">The initial value for the corresponding property.</param>
/// <param name="iD">The initial value for the corresponding property.</param>
/// <param name="name">The initial value for the corresponding property.</param>
        public ShopTable(System.Boolean @canBuy, NetGore.Features.Shops.ShopID @iD, System.String @name)
        {
            this.CanBuy = (System.Boolean)@canBuy;
            this.ID     = (NetGore.Features.Shops.ShopID)@iD;
            this.Name   = (System.String)@name;
        }
Esempio n. 15
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 "item_template_id":
this.ItemTemplateID = (DemoGame.ItemTemplateID)value;
break;

case "shop_id":
this.ShopID = (NetGore.Features.Shops.ShopID)value;
break;

default:
throw new ArgumentException("Field not found.","columnName");
}
}
Esempio n. 16
0
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this ShopItemTable.
/// </summary>
/// <param name="source">The IShopItemTable to copy the values from.</param>
public void CopyValuesFrom(IShopItemTable source)
{
this.ItemTemplateID = (DemoGame.ItemTemplateID)source.ItemTemplateID;
this.ShopID = (NetGore.Features.Shops.ShopID)source.ShopID;
}
Esempio n. 17
0
/// <summary>
/// Initializes a new instance of the <see cref="WorldStatsCountShopBuyTable"/> 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="shopID">The initial value for the corresponding property.</param>
public WorldStatsCountShopBuyTable(System.Int32 @count, System.DateTime @lastUpdate, NetGore.Features.Shops.ShopID @shopID)
{
this.Count = (System.Int32)@count;
this.LastUpdate = (System.DateTime)@lastUpdate;
this.ShopID = (NetGore.Features.Shops.ShopID)@shopID;
}
Esempio n. 18
0
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this ShopItemTable.
/// </summary>
/// <param name="source">The IShopItemTable to copy the values from.</param>
        public void CopyValuesFrom(IShopItemTable source)
        {
            this.ItemTemplateID = (DemoGame.ItemTemplateID)source.ItemTemplateID;
            this.ShopID         = (NetGore.Features.Shops.ShopID)source.ShopID;
        }
Esempio n. 19
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 "count":
this.Count = (System.Int32)value;
break;

case "last_update":
this.LastUpdate = (System.DateTime)value;
break;

case "shop_id":
this.ShopID = (NetGore.Features.Shops.ShopID)value;
break;

default:
throw new ArgumentException("Field not found.","columnName");
}
}
/// <summary>
/// Initializes a new instance of the <see cref="WorldStatsUserShoppingTable"/> class.
/// </summary>
/// <param name="amount">The initial value for the corresponding property.</param>
/// <param name="characterID">The initial value for the corresponding property.</param>
/// <param name="cost">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="mapID">The initial value for the corresponding property.</param>
/// <param name="saleType">The initial value for the corresponding property.</param>
/// <param name="shopID">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 WorldStatsUserShoppingTable(System.Byte @amount, DemoGame.CharacterID @characterID, System.Int32 @cost, System.UInt32 @iD, System.Nullable <DemoGame.ItemTemplateID> @itemTemplateID, System.Nullable <NetGore.World.MapID> @mapID, System.SByte @saleType, NetGore.Features.Shops.ShopID @shopID, System.DateTime @when, System.UInt16 @x, System.UInt16 @y)
        {
            this.Amount         = (System.Byte)@amount;
            this.CharacterID    = (DemoGame.CharacterID)@characterID;
            this.Cost           = (System.Int32)@cost;
            this.ID             = (System.UInt32)@iD;
            this.ItemTemplateID = (System.Nullable <DemoGame.ItemTemplateID>)@itemTemplateID;
            this.MapID          = (System.Nullable <NetGore.World.MapID>)@mapID;
            this.SaleType       = (System.SByte)@saleType;
            this.ShopID         = (NetGore.Features.Shops.ShopID)@shopID;
            this.When           = (System.DateTime)@when;
            this.X = (System.UInt16)@x;
            this.Y = (System.UInt16)@y;
        }