コード例 #1
0
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this CharacterQuestStatusKillsTable.
/// </summary>
/// <param name="source">The ICharacterQuestStatusKillsTable to copy the values from.</param>
        public void CopyValuesFrom(ICharacterQuestStatusKillsTable source)
        {
            this.CharacterID         = (DemoGame.CharacterID)source.CharacterID;
            this.CharacterTemplateID = (DemoGame.CharacterTemplateID)source.CharacterTemplateID;
            this.Count   = (System.UInt16)source.Count;
            this.QuestID = (NetGore.Features.Quests.QuestID)source.QuestID;
        }
コード例 #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;
        }
コード例 #3
0
ファイル: QuestTable.cs プロジェクト: thepirateclub/netgore
/// <summary>
/// Initializes a new instance of the <see cref="QuestTable"/> class.
/// </summary>
/// <param name="iD">The initial value for the corresponding property.</param>
/// <param name="repeatable">The initial value for the corresponding property.</param>
/// <param name="rewardCash">The initial value for the corresponding property.</param>
/// <param name="rewardExp">The initial value for the corresponding property.</param>
        public QuestTable(NetGore.Features.Quests.QuestID @iD, System.Boolean @repeatable, System.Int32 @rewardCash, System.Int32 @rewardExp)
        {
            this.ID         = (NetGore.Features.Quests.QuestID)@iD;
            this.Repeatable = (System.Boolean)@repeatable;
            this.RewardCash = (System.Int32)@rewardCash;
            this.RewardExp  = (System.Int32)@rewardExp;
        }
コード例 #4
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 "quest_id":
                this.QuestID = (NetGore.Features.Quests.QuestID)value;
                break;

            case "req_quest_id":
                this.ReqQuestID = (NetGore.Features.Quests.QuestID)value;
                break;

            default:
                throw new ArgumentException("Field not found.", "columnName");
            }
        }
コード例 #5
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 "character_template_id":
                this.CharacterTemplateID = (DemoGame.CharacterTemplateID)value;
                break;

            case "quest_id":
                this.QuestID = (NetGore.Features.Quests.QuestID)value;
                break;

            default:
                throw new ArgumentException("Field not found.", "columnName");
            }
        }
コード例 #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 "quest_event_counter_id":
                this.QuestEventCounterId = (System.Byte)value;
                break;

            case "quest_id":
                this.QuestID = (NetGore.Features.Quests.QuestID)value;
                break;

            default:
                throw new ArgumentException("Field not found.", "columnName");
            }
        }
コード例 #7
0
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this QuestRequireStartQuestTable.
/// </summary>
/// <param name="source">The IQuestRequireStartQuestTable to copy the values from.</param>
        public void CopyValuesFrom(IQuestRequireStartQuestTable source)
        {
            this.QuestID    = (NetGore.Features.Quests.QuestID)source.QuestID;
            this.ReqQuestID = (NetGore.Features.Quests.QuestID)source.ReqQuestID;
        }
コード例 #8
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;
}
コード例 #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 "quest_id":
this.QuestID = (NetGore.Features.Quests.QuestID)value;
break;

case "req_quest_id":
this.ReqQuestID = (NetGore.Features.Quests.QuestID)value;
break;

default:
throw new ArgumentException("Field not found.","columnName");
}
}
コード例 #10
0
/// <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;
        }
コード例 #11
0
ファイル: QuestRequireKillTable.cs プロジェクト: wtfcolt/game
/// <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 "amount":
this.Amount = (System.UInt16)value;
break;

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

case "quest_id":
this.QuestID = (NetGore.Features.Quests.QuestID)value;
break;

default:
throw new ArgumentException("Field not found.","columnName");
}
}
コード例 #12
0
/// <summary>
/// Initializes a new instance of the <see cref="QuestRequireStartQuestTable"/> class.
/// </summary>
/// <param name="questID">The initial value for the corresponding property.</param>
/// <param name="reqQuestID">The initial value for the corresponding property.</param>
public QuestRequireStartQuestTable(NetGore.Features.Quests.QuestID @questID, NetGore.Features.Quests.QuestID @reqQuestID)
{
this.QuestID = (NetGore.Features.Quests.QuestID)@questID;
this.ReqQuestID = (NetGore.Features.Quests.QuestID)@reqQuestID;
}
コード例 #13
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;
        }
コード例 #14
0
ファイル: QuestRequireKillTable.cs プロジェクト: wtfcolt/game
/// <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;
}
コード例 #15
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;
}
コード例 #16
0
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this CharacterTemplateQuestProviderTable.
/// </summary>
/// <param name="source">The ICharacterTemplateQuestProviderTable to copy the values from.</param>
public void CopyValuesFrom(ICharacterTemplateQuestProviderTable source)
{
this.CharacterTemplateID = (DemoGame.CharacterTemplateID)source.CharacterTemplateID;
this.QuestID = (NetGore.Features.Quests.QuestID)source.QuestID;
}
コード例 #17
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 "quest_event_counter_id":
this.QuestEventCounterId = (System.Byte)value;
break;

case "quest_id":
this.QuestID = (NetGore.Features.Quests.QuestID)value;
break;

default:
throw new ArgumentException("Field not found.","columnName");
}
}
コード例 #18
0
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this EventCountersQuestTable.
/// </summary>
/// <param name="source">The IEventCountersQuestTable to copy the values from.</param>
public void CopyValuesFrom(IEventCountersQuestTable source)
{
this.Counter = (System.Int64)source.Counter;
this.QuestEventCounterId = (System.Byte)source.QuestEventCounterId;
this.QuestID = (NetGore.Features.Quests.QuestID)source.QuestID;
}
コード例 #19
0
/// <summary>
/// Initializes a new instance of the <see cref="EventCountersQuestTable"/> class.
/// </summary>
/// <param name="counter">The initial value for the corresponding property.</param>
/// <param name="questEventCounterId">The initial value for the corresponding property.</param>
/// <param name="questID">The initial value for the corresponding property.</param>
public EventCountersQuestTable(System.Int64 @counter, System.Byte @questEventCounterId, NetGore.Features.Quests.QuestID @questID)
{
this.Counter = (System.Int64)@counter;
this.QuestEventCounterId = (System.Byte)@questEventCounterId;
this.QuestID = (NetGore.Features.Quests.QuestID)@questID;
}
コード例 #20
0
ファイル: QuestRewardItemTable.cs プロジェクト: wtfcolt/game
/// <summary>
/// Initializes a new instance of the <see cref="QuestRewardItemTable"/> 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 QuestRewardItemTable(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;
}
コード例 #21
0
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this CharacterTemplateQuestProviderTable.
/// </summary>
/// <param name="source">The ICharacterTemplateQuestProviderTable to copy the values from.</param>
        public void CopyValuesFrom(ICharacterTemplateQuestProviderTable source)
        {
            this.CharacterTemplateID = (DemoGame.CharacterTemplateID)source.CharacterTemplateID;
            this.QuestID             = (NetGore.Features.Quests.QuestID)source.QuestID;
        }
コード例 #22
0
ファイル: QuestRewardItemTable.cs プロジェクト: wtfcolt/game
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this QuestRewardItemTable.
/// </summary>
/// <param name="source">The IQuestRewardItemTable to copy the values from.</param>
public void CopyValuesFrom(IQuestRewardItemTable source)
{
this.Amount = (System.Byte)source.Amount;
this.ItemTemplateID = (DemoGame.ItemTemplateID)source.ItemTemplateID;
this.QuestID = (NetGore.Features.Quests.QuestID)source.QuestID;
}
コード例 #23
0
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this EventCountersQuestTable.
/// </summary>
/// <param name="source">The IEventCountersQuestTable to copy the values from.</param>
        public void CopyValuesFrom(IEventCountersQuestTable source)
        {
            this.Counter             = (System.Int64)source.Counter;
            this.QuestEventCounterId = (System.Byte)source.QuestEventCounterId;
            this.QuestID             = (NetGore.Features.Quests.QuestID)source.QuestID;
        }
コード例 #24
0
ファイル: QuestRequireKillTable.cs プロジェクト: wtfcolt/game
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this QuestRequireKillTable.
/// </summary>
/// <param name="source">The IQuestRequireKillTable to copy the values from.</param>
public void CopyValuesFrom(IQuestRequireKillTable source)
{
this.Amount = (System.UInt16)source.Amount;
this.CharacterTemplateID = (DemoGame.CharacterTemplateID)source.CharacterTemplateID;
this.QuestID = (NetGore.Features.Quests.QuestID)source.QuestID;
}
コード例 #25
0
ファイル: QuestRequireKillTable.cs プロジェクト: wtfcolt/game
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this QuestRequireKillTable.
/// </summary>
/// <param name="source">The IQuestRequireKillTable to copy the values from.</param>
        public void CopyValuesFrom(IQuestRequireKillTable source)
        {
            this.Amount = (System.UInt16)source.Amount;
            this.CharacterTemplateID = (DemoGame.CharacterTemplateID)source.CharacterTemplateID;
            this.QuestID             = (NetGore.Features.Quests.QuestID)source.QuestID;
        }
コード例 #26
0
/// <summary>
/// Initializes a new instance of the <see cref="CharacterQuestStatusTable"/> class.
/// </summary>
/// <param name="characterID">The initial value for the corresponding property.</param>
/// <param name="completedOn">The initial value for the corresponding property.</param>
/// <param name="questID">The initial value for the corresponding property.</param>
/// <param name="startedOn">The initial value for the corresponding property.</param>
        public CharacterQuestStatusTable(DemoGame.CharacterID @characterID, System.Nullable <System.DateTime> @completedOn, NetGore.Features.Quests.QuestID @questID, System.DateTime @startedOn)
        {
            this.CharacterID = (DemoGame.CharacterID)@characterID;
            this.CompletedOn = (System.Nullable <System.DateTime>)@completedOn;
            this.QuestID     = (NetGore.Features.Quests.QuestID)@questID;
            this.StartedOn   = (System.DateTime)@startedOn;
        }
コード例 #27
0
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this QuestRequireFinishItemTable.
/// </summary>
/// <param name="source">The IQuestRequireFinishItemTable to copy the values from.</param>
        public void CopyValuesFrom(IQuestRequireFinishItemTable source)
        {
            this.Amount         = (System.Byte)source.Amount;
            this.ItemTemplateID = (DemoGame.ItemTemplateID)source.ItemTemplateID;
            this.QuestID        = (NetGore.Features.Quests.QuestID)source.QuestID;
        }
コード例 #28
0
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this QuestRequireStartQuestTable.
/// </summary>
/// <param name="source">The IQuestRequireStartQuestTable to copy the values from.</param>
public void CopyValuesFrom(IQuestRequireStartQuestTable source)
{
this.QuestID = (NetGore.Features.Quests.QuestID)source.QuestID;
this.ReqQuestID = (NetGore.Features.Quests.QuestID)source.ReqQuestID;
}
コード例 #29
0
/// <summary>
/// Initializes a new instance of the <see cref="QuestRequireStartQuestTable"/> class.
/// </summary>
/// <param name="questID">The initial value for the corresponding property.</param>
/// <param name="reqQuestID">The initial value for the corresponding property.</param>
        public QuestRequireStartQuestTable(NetGore.Features.Quests.QuestID @questID, NetGore.Features.Quests.QuestID @reqQuestID)
        {
            this.QuestID    = (NetGore.Features.Quests.QuestID)@questID;
            this.ReqQuestID = (NetGore.Features.Quests.QuestID)@reqQuestID;
        }
コード例 #30
0
/// <summary>
/// Initializes a new instance of the <see cref="EventCountersQuestTable"/> class.
/// </summary>
/// <param name="counter">The initial value for the corresponding property.</param>
/// <param name="questEventCounterId">The initial value for the corresponding property.</param>
/// <param name="questID">The initial value for the corresponding property.</param>
        public EventCountersQuestTable(System.Int64 @counter, System.Byte @questEventCounterId, NetGore.Features.Quests.QuestID @questID)
        {
            this.Counter             = (System.Int64)@counter;
            this.QuestEventCounterId = (System.Byte)@questEventCounterId;
            this.QuestID             = (NetGore.Features.Quests.QuestID)@questID;
        }
コード例 #31
0
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this CharacterQuestStatusKillsTable.
/// </summary>
/// <param name="source">The ICharacterQuestStatusKillsTable to copy the values from.</param>
public void CopyValuesFrom(ICharacterQuestStatusKillsTable source)
{
this.CharacterID = (DemoGame.CharacterID)source.CharacterID;
this.CharacterTemplateID = (DemoGame.CharacterTemplateID)source.CharacterTemplateID;
this.Count = (System.UInt16)source.Count;
this.QuestID = (NetGore.Features.Quests.QuestID)source.QuestID;
}
コード例 #32
0
/// <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;
        }
コード例 #33
0
ファイル: QuestRequireKillTable.cs プロジェクト: wtfcolt/game
/// <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;
        }