예제 #1
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;
        }
예제 #2
0
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this WorldStatsCountNpcKillUserTable.
/// </summary>
/// <param name="source">The IWorldStatsCountNpcKillUserTable to copy the values from.</param>
        public void CopyValuesFrom(IWorldStatsCountNpcKillUserTable source)
        {
            this.Count         = (System.Int32)source.Count;
            this.LastUpdate    = (System.DateTime)source.LastUpdate;
            this.NPCTemplateID = (DemoGame.CharacterTemplateID)source.NPCTemplateID;
            this.UserID        = (DemoGame.CharacterID)source.UserID;
        }
/// <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 WorldStatsCountUserConsumeItemTable.
/// </summary>
/// <param name="source">The IWorldStatsCountUserConsumeItemTable to copy the values from.</param>
        public void CopyValuesFrom(IWorldStatsCountUserConsumeItemTable source)
        {
            this.Count          = (System.Int32)source.Count;
            this.ItemTemplateID = (DemoGame.ItemTemplateID)source.ItemTemplateID;
            this.LastUpdate     = (System.DateTime)source.LastUpdate;
            this.UserID         = (DemoGame.CharacterID)source.UserID;
        }
예제 #5
0
/// <summary>
/// Initializes a new instance of the <see cref="WorldStatsCountNpcKillUserTable"/> 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 WorldStatsCountNpcKillUserTable(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;
        }
예제 #6
0
/// <summary>
/// Initializes a new instance of the <see cref="CharacterStatusEffectTable"/> class.
/// </summary>
/// <param name="characterID">The initial value for the corresponding property.</param>
/// <param name="iD">The initial value for the corresponding property.</param>
/// <param name="power">The initial value for the corresponding property.</param>
/// <param name="statusEffect">The initial value for the corresponding property.</param>
/// <param name="timeLeftSecs">The initial value for the corresponding property.</param>
        public CharacterStatusEffectTable(DemoGame.CharacterID @characterID, DemoGame.ActiveStatusEffectID @iD, System.UInt16 @power, DemoGame.StatusEffectType @statusEffect, System.UInt16 @timeLeftSecs)
        {
            this.CharacterID  = (DemoGame.CharacterID)@characterID;
            this.ID           = (DemoGame.ActiveStatusEffectID)@iD;
            this.Power        = (System.UInt16)@power;
            this.StatusEffect = (DemoGame.StatusEffectType)@statusEffect;
            this.TimeLeftSecs = (System.UInt16)@timeLeftSecs;
        }
예제 #7
0
/// <summary>
/// Initializes a new instance of the <see cref="WorldStatsUserLevelTable"/> class.
/// </summary>
/// <param name="characterID">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="mapID">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 WorldStatsUserLevelTable(DemoGame.CharacterID @characterID, System.UInt32 @iD, System.Int16 @level, System.Nullable <NetGore.World.MapID> @mapID, System.DateTime @when, System.UInt16 @x, System.UInt16 @y)
        {
            this.CharacterID = (DemoGame.CharacterID)@characterID;
            this.ID          = (System.UInt32)@iD;
            this.Level       = (System.Int16)@level;
            this.MapID       = (System.Nullable <NetGore.World.MapID>)@mapID;
            this.When        = (System.DateTime)@when;
            this.X           = (System.UInt16)@x;
            this.Y           = (System.UInt16)@y;
        }
/// <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;
        }
예제 #9
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 "cash":
                this.Cash = (System.Int32)value;
                break;

            case "character_id":
                this.CharacterID = (DemoGame.CharacterID)value;
                break;

            default:
                throw new ArgumentException("Field not found.", "columnName");
            }
        }
예제 #10
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 "user_event_counter_id":
                this.UserEventCounterId = (System.Byte)value;
                break;

            case "user_id":
                this.UserID = (DemoGame.CharacterID)value;
                break;

            default:
                throw new ArgumentException("Field not found.", "columnName");
            }
        }
예제 #11
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 "npc_template_id":
                this.NPCTemplateID = (DemoGame.CharacterTemplateID)value;
                break;

            case "user_id":
                this.UserID = (DemoGame.CharacterID)value;
                break;

            default:
                throw new ArgumentException("Field not found.", "columnName");
            }
        }
예제 #12
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 "cash":
this.Cash = (System.Int32)value;
break;

case "character_id":
this.CharacterID = (DemoGame.CharacterID)value;
break;

default:
throw new ArgumentException("Field not found.","columnName");
}
}
예제 #13
0
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this ActiveTradeCashTable.
/// </summary>
/// <param name="source">The IActiveTradeCashTable to copy the values from.</param>
public void CopyValuesFrom(IActiveTradeCashTable source)
{
this.Cash = (System.Int32)source.Cash;
this.CharacterID = (DemoGame.CharacterID)source.CharacterID;
}
예제 #14
0
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this EventCountersUserTable.
/// </summary>
/// <param name="source">The IEventCountersUserTable to copy the values from.</param>
public void CopyValuesFrom(IEventCountersUserTable source)
{
this.Counter = (System.Int64)source.Counter;
this.UserEventCounterId = (System.Byte)source.UserEventCounterId;
this.UserID = (DemoGame.CharacterID)source.UserID;
}
예제 #15
0
/// <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;
        }
예제 #16
0
/// <summary>
/// Initializes a new instance of the <see cref="WorldStatsGuildUserChangeTable"/> class.
/// </summary>
/// <param name="guildID">The initial value for the corresponding property.</param>
/// <param name="iD">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>
        public WorldStatsGuildUserChangeTable(System.Nullable <NetGore.Features.Guilds.GuildID> @guildID, System.UInt32 @iD, DemoGame.CharacterID @userID, System.DateTime @when)
        {
            this.GuildID = (System.Nullable <NetGore.Features.Guilds.GuildID>)@guildID;
            this.ID      = (System.UInt32)@iD;
            this.UserID  = (DemoGame.CharacterID)@userID;
            this.When    = (System.DateTime)@when;
        }
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this WorldStatsCountUserKillNpcTable.
/// </summary>
/// <param name="source">The IWorldStatsCountUserKillNpcTable to copy the values from.</param>
public void CopyValuesFrom(IWorldStatsCountUserKillNpcTable source)
{
this.Count = (System.Int32)source.Count;
this.LastUpdate = (System.DateTime)source.LastUpdate;
this.NPCTemplateID = (DemoGame.CharacterTemplateID)source.NPCTemplateID;
this.UserID = (DemoGame.CharacterID)source.UserID;
}
예제 #18
0
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this EventCountersUserTable.
/// </summary>
/// <param name="source">The IEventCountersUserTable to copy the values from.</param>
        public void CopyValuesFrom(IEventCountersUserTable source)
        {
            this.Counter            = (System.Int64)source.Counter;
            this.UserEventCounterId = (System.Byte)source.UserEventCounterId;
            this.UserID             = (DemoGame.CharacterID)source.UserID;
        }
예제 #19
0
/// <summary>
/// Initializes a new instance of the <see cref="EventCountersUserTable"/> class.
/// </summary>
/// <param name="counter">The initial value for the corresponding property.</param>
/// <param name="userEventCounterId">The initial value for the corresponding property.</param>
/// <param name="userID">The initial value for the corresponding property.</param>
        public EventCountersUserTable(System.Int64 @counter, System.Byte @userEventCounterId, DemoGame.CharacterID @userID)
        {
            this.Counter            = (System.Int64)@counter;
            this.UserEventCounterId = (System.Byte)@userEventCounterId;
            this.UserID             = (DemoGame.CharacterID)@userID;
        }
예제 #20
0
/// <summary>
/// Initializes a new instance of the <see cref="CharacterEquippedTable"/> class.
/// </summary>
/// <param name="characterID">The initial value for the corresponding property.</param>
/// <param name="itemID">The initial value for the corresponding property.</param>
/// <param name="slot">The initial value for the corresponding property.</param>
        public CharacterEquippedTable(DemoGame.CharacterID @characterID, DemoGame.ItemID @itemID, DemoGame.EquipmentSlot @slot)
        {
            this.CharacterID = (DemoGame.CharacterID)@characterID;
            this.ItemID      = (DemoGame.ItemID)@itemID;
            this.Slot        = (DemoGame.EquipmentSlot)@slot;
        }
예제 #21
0
/// <summary>
/// Initializes a new instance of the <see cref="ActiveTradeCashTable"/> class.
/// </summary>
/// <param name="cash">The initial value for the corresponding property.</param>
/// <param name="characterID">The initial value for the corresponding property.</param>
        public ActiveTradeCashTable(System.Int32 @cash, DemoGame.CharacterID @characterID)
        {
            this.Cash        = (System.Int32)@cash;
            this.CharacterID = (DemoGame.CharacterID)@characterID;
        }
예제 #22
0
/// <summary>
/// Initializes a new instance of the <see cref="WorldStatsNpcKillUserTable"/> class.
/// </summary>
/// <param name="iD">The initial value for the corresponding property.</param>
/// <param name="mapID">The initial value for the corresponding property.</param>
/// <param name="nPCTemplateID">The initial value for the corresponding property.</param>
/// <param name="npcX">The initial value for the corresponding property.</param>
/// <param name="npcY">The initial value for the corresponding property.</param>
/// <param name="userID">The initial value for the corresponding property.</param>
/// <param name="userLevel">The initial value for the corresponding property.</param>
/// <param name="userX">The initial value for the corresponding property.</param>
/// <param name="userY">The initial value for the corresponding property.</param>
/// <param name="when">The initial value for the corresponding property.</param>
        public WorldStatsNpcKillUserTable(System.UInt32 @iD, System.Nullable <NetGore.World.MapID> @mapID, System.Nullable <DemoGame.CharacterTemplateID> @nPCTemplateID, System.UInt16 @npcX, System.UInt16 @npcY, DemoGame.CharacterID @userID, System.Int16 @userLevel, System.UInt16 @userX, System.UInt16 @userY, System.DateTime @when)
        {
            this.ID            = (System.UInt32)@iD;
            this.MapID         = (System.Nullable <NetGore.World.MapID>)@mapID;
            this.NPCTemplateID = (System.Nullable <DemoGame.CharacterTemplateID>)@nPCTemplateID;
            this.NpcX          = (System.UInt16)@npcX;
            this.NpcY          = (System.UInt16)@npcY;
            this.UserID        = (DemoGame.CharacterID)@userID;
            this.UserLevel     = (System.Int16)@userLevel;
            this.UserX         = (System.UInt16)@userX;
            this.UserY         = (System.UInt16)@userY;
            this.When          = (System.DateTime)@when;
        }
/// <summary>
/// Initializes a new instance of the <see cref="WorldStatsQuestAcceptTable"/> class.
/// </summary>
/// <param name="iD">The initial value for the corresponding property.</param>
/// <param name="mapID">The initial value for the corresponding property.</param>
/// <param name="questID">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 WorldStatsQuestAcceptTable(System.UInt32 @iD, System.Nullable <NetGore.World.MapID> @mapID, NetGore.Features.Quests.QuestID @questID, DemoGame.CharacterID @userID, System.DateTime @when, System.UInt16 @x, System.UInt16 @y)
        {
            this.ID      = (System.UInt32)@iD;
            this.MapID   = (System.Nullable <NetGore.World.MapID>)@mapID;
            this.QuestID = (NetGore.Features.Quests.QuestID)@questID;
            this.UserID  = (DemoGame.CharacterID)@userID;
            this.When    = (System.DateTime)@when;
            this.X       = (System.UInt16)@x;
            this.Y       = (System.UInt16)@y;
        }
예제 #24
0
/// <summary>
/// Initializes a new instance of the <see cref="ActiveTradeItemTable"/> class.
/// </summary>
/// <param name="characterID">The initial value for the corresponding property.</param>
/// <param name="itemID">The initial value for the corresponding property.</param>
        public ActiveTradeItemTable(DemoGame.CharacterID @characterID, DemoGame.ItemID @itemID)
        {
            this.CharacterID = (DemoGame.CharacterID)@characterID;
            this.ItemID      = (DemoGame.ItemID)@itemID;
        }
/// <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;
}
예제 #26
0
/// <summary>
/// Initializes a new instance of the <see cref="AccountCharacterTable"/> class.
/// </summary>
/// <param name="accountID">The initial value for the corresponding property.</param>
/// <param name="characterID">The initial value for the corresponding property.</param>
/// <param name="timeDeleted">The initial value for the corresponding property.</param>
        public AccountCharacterTable(DemoGame.AccountID @accountID, DemoGame.CharacterID @characterID, System.Nullable <System.DateTime> @timeDeleted)
        {
            this.AccountID   = (DemoGame.AccountID)@accountID;
            this.CharacterID = (DemoGame.CharacterID)@characterID;
            this.TimeDeleted = (System.Nullable <System.DateTime>)@timeDeleted;
        }
/// <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 "npc_template_id":
this.NPCTemplateID = (DemoGame.CharacterTemplateID)value;
break;

case "user_id":
this.UserID = (DemoGame.CharacterID)value;
break;

default:
throw new ArgumentException("Field not found.","columnName");
}
}
/// <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;
}
예제 #29
0
/// <summary>
/// Initializes a new instance of the <see cref="GuildEventTable"/> class.
/// </summary>
/// <param name="arg0">The initial value for the corresponding property.</param>
/// <param name="arg1">The initial value for the corresponding property.</param>
/// <param name="arg2">The initial value for the corresponding property.</param>
/// <param name="characterID">The initial value for the corresponding property.</param>
/// <param name="created">The initial value for the corresponding property.</param>
/// <param name="eventID">The initial value for the corresponding property.</param>
/// <param name="guildID">The initial value for the corresponding property.</param>
/// <param name="iD">The initial value for the corresponding property.</param>
/// <param name="targetCharacterID">The initial value for the corresponding property.</param>
        public GuildEventTable(System.String @arg0, System.String @arg1, System.String @arg2, DemoGame.CharacterID @characterID, System.DateTime @created, System.Byte @eventID, NetGore.Features.Guilds.GuildID @guildID, System.Int32 @iD, System.Nullable <DemoGame.CharacterID> @targetCharacterID)
        {
            this.Arg0              = (System.String)@arg0;
            this.Arg1              = (System.String)@arg1;
            this.Arg2              = (System.String)@arg2;
            this.CharacterID       = (DemoGame.CharacterID)@characterID;
            this.Created           = (System.DateTime)@created;
            this.EventID           = (System.Byte)@eventID;
            this.GuildID           = (NetGore.Features.Guilds.GuildID)@guildID;
            this.ID                = (System.Int32)@iD;
            this.TargetCharacterID = (System.Nullable <DemoGame.CharacterID>)@targetCharacterID;
        }
예제 #30
0
/// <summary>
/// Initializes a new instance of the <see cref="CharacterInventoryTable"/> class.
/// </summary>
/// <param name="characterID">The initial value for the corresponding property.</param>
/// <param name="itemID">The initial value for the corresponding property.</param>
/// <param name="slot">The initial value for the corresponding property.</param>
        public CharacterInventoryTable(DemoGame.CharacterID @characterID, DemoGame.ItemID @itemID, NetGore.InventorySlot @slot)
        {
            this.CharacterID = (DemoGame.CharacterID)@characterID;
            this.ItemID      = (DemoGame.ItemID)@itemID;
            this.Slot        = (NetGore.InventorySlot)@slot;
        }
예제 #31
0
/// <summary>
/// Initializes a new instance of the <see cref="EventCountersUserTable"/> class.
/// </summary>
/// <param name="counter">The initial value for the corresponding property.</param>
/// <param name="userEventCounterId">The initial value for the corresponding property.</param>
/// <param name="userID">The initial value for the corresponding property.</param>
public EventCountersUserTable(System.Int64 @counter, System.Byte @userEventCounterId, DemoGame.CharacterID @userID)
{
this.Counter = (System.Int64)@counter;
this.UserEventCounterId = (System.Byte)@userEventCounterId;
this.UserID = (DemoGame.CharacterID)@userID;
}
예제 #32
0
/// <summary>
/// Initializes a new instance of the <see cref="ActiveTradeCashTable"/> class.
/// </summary>
/// <param name="cash">The initial value for the corresponding property.</param>
/// <param name="characterID">The initial value for the corresponding property.</param>
public ActiveTradeCashTable(System.Int32 @cash, DemoGame.CharacterID @characterID)
{
this.Cash = (System.Int32)@cash;
this.CharacterID = (DemoGame.CharacterID)@characterID;
}
예제 #33
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 "user_event_counter_id":
this.UserEventCounterId = (System.Byte)value;
break;

case "user_id":
this.UserID = (DemoGame.CharacterID)value;
break;

default:
throw new ArgumentException("Field not found.","columnName");
}
}
예제 #34
0
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this ActiveTradeCashTable.
/// </summary>
/// <param name="source">The IActiveTradeCashTable to copy the values from.</param>
        public void CopyValuesFrom(IActiveTradeCashTable source)
        {
            this.Cash        = (System.Int32)source.Cash;
            this.CharacterID = (DemoGame.CharacterID)source.CharacterID;
        }
예제 #35
0
/// <summary>
/// Initializes a new instance of the <see cref="CharacterTable"/> class.
/// </summary>
/// <param name="aIID">The initial value for the corresponding property.</param>
/// <param name="bodyID">The initial value for the corresponding property.</param>
/// <param name="cash">The initial value for the corresponding property.</param>
/// <param name="characterTemplateID">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="hP">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="loadMapID">The initial value for the corresponding property.</param>
/// <param name="loadX">The initial value for the corresponding property.</param>
/// <param name="loadY">The initial value for the corresponding property.</param>
/// <param name="moveSpeed">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="respawnMapID">The initial value for the corresponding property.</param>
/// <param name="respawnX">The initial value for the corresponding property.</param>
/// <param name="respawnY">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 CharacterTable(System.Nullable <NetGore.AI.AIID> @aIID, DemoGame.BodyID @bodyID, System.Int32 @cash, System.Nullable <DemoGame.CharacterTemplateID> @characterTemplateID, System.Nullable <NetGore.Features.NPCChat.NPCChatDialogID> @chatDialog, System.Int32 @exp, DemoGame.SPValueType @hP, DemoGame.CharacterID @iD, System.Int16 @level, NetGore.World.MapID @loadMapID, System.UInt16 @loadX, System.UInt16 @loadY, System.UInt16 @moveSpeed, DemoGame.SPValueType @mP, System.String @name, System.Nullable <NetGore.World.MapID> @respawnMapID, System.Single @respawnX, System.Single @respawnY, 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.BodyID = (DemoGame.BodyID)@bodyID;
            this.Cash   = (System.Int32)@cash;
            this.CharacterTemplateID = (System.Nullable <DemoGame.CharacterTemplateID>)@characterTemplateID;
            this.ChatDialog          = (System.Nullable <NetGore.Features.NPCChat.NPCChatDialogID>)@chatDialog;
            this.Exp          = (System.Int32)@exp;
            this.HP           = (DemoGame.SPValueType)@hP;
            this.ID           = (DemoGame.CharacterID)@iD;
            this.Level        = (System.Int16)@level;
            this.LoadMapID    = (NetGore.World.MapID)@loadMapID;
            this.LoadX        = (System.UInt16)@loadX;
            this.LoadY        = (System.UInt16)@loadY;
            this.MoveSpeed    = (System.UInt16)@moveSpeed;
            this.MP           = (DemoGame.SPValueType)@mP;
            this.Name         = (System.String)@name;
            this.RespawnMapID = (System.Nullable <NetGore.World.MapID>)@respawnMapID;
            this.RespawnX     = (System.Single)@respawnX;
            this.RespawnY     = (System.Single)@respawnY;
            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);
        }
예제 #36
0
/// <summary>
/// Initializes a new instance of the <see cref="CharacterSkillTable"/> class.
/// </summary>
/// <param name="characterID">The initial value for the corresponding property.</param>
/// <param name="skillID">The initial value for the corresponding property.</param>
/// <param name="timeAdded">The initial value for the corresponding property.</param>
        public CharacterSkillTable(DemoGame.CharacterID @characterID, DemoGame.SkillType @skillID, System.DateTime @timeAdded)
        {
            this.CharacterID = (DemoGame.CharacterID)@characterID;
            this.SkillID     = (DemoGame.SkillType)@skillID;
            this.TimeAdded   = (System.DateTime)@timeAdded;
        }