예제 #1
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);
        }
/// <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 "alliance_id":
                this.AllianceID = (DemoGame.AllianceID)value;
                break;

            case "attackable_id":
                this.AttackableID = (DemoGame.AllianceID)value;
                break;

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

case "attackable_id":
this.AttackableID = (DemoGame.AllianceID)value;
break;

default:
throw new ArgumentException("Field not found.","columnName");
}
}
예제 #4
0
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this AllianceAttackableTable.
/// </summary>
/// <param name="source">The IAllianceAttackableTable to copy the values from.</param>
public void CopyValuesFrom(IAllianceAttackableTable source)
{
this.AllianceID = (DemoGame.AllianceID)source.AllianceID;
this.AttackableID = (DemoGame.AllianceID)source.AttackableID;
}
예제 #5
0
/// <summary>
/// Initializes a new instance of the <see cref="AllianceAttackableTable"/> class.
/// </summary>
/// <param name="allianceID">The initial value for the corresponding property.</param>
/// <param name="attackableID">The initial value for the corresponding property.</param>
public AllianceAttackableTable(DemoGame.AllianceID @allianceID, DemoGame.AllianceID @attackableID)
{
this.AllianceID = (DemoGame.AllianceID)@allianceID;
this.AttackableID = (DemoGame.AllianceID)@attackableID;
}
예제 #6
0
/// <summary>
/// Initializes a new instance of the <see cref="AllianceTable"/> class.
/// </summary>
/// <param name="iD">The initial value for the corresponding property.</param>
/// <param name="name">The initial value for the corresponding property.</param>
        public AllianceTable(DemoGame.AllianceID @iD, System.String @name)
        {
            this.ID   = (DemoGame.AllianceID)@iD;
            this.Name = (System.String)@name;
        }
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this AllianceAttackableTable.
/// </summary>
/// <param name="source">The IAllianceAttackableTable to copy the values from.</param>
        public void CopyValuesFrom(IAllianceAttackableTable source)
        {
            this.AllianceID   = (DemoGame.AllianceID)source.AllianceID;
            this.AttackableID = (DemoGame.AllianceID)source.AttackableID;
        }
/// <summary>
/// Initializes a new instance of the <see cref="AllianceAttackableTable"/> class.
/// </summary>
/// <param name="allianceID">The initial value for the corresponding property.</param>
/// <param name="attackableID">The initial value for the corresponding property.</param>
        public AllianceAttackableTable(DemoGame.AllianceID @allianceID, DemoGame.AllianceID @attackableID)
        {
            this.AllianceID   = (DemoGame.AllianceID)@allianceID;
            this.AttackableID = (DemoGame.AllianceID)@attackableID;
        }
예제 #9
0
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this AllianceHostileTable.
/// </summary>
/// <param name="source">The IAllianceHostileTable to copy the values from.</param>
public void CopyValuesFrom(IAllianceHostileTable source)
{
this.AllianceID = (DemoGame.AllianceID)source.AllianceID;
this.HostileID = (DemoGame.AllianceID)source.HostileID;
}
예제 #10
0
/// <summary>
/// Initializes a new instance of the <see cref="AllianceHostileTable"/> class.
/// </summary>
/// <param name="allianceID">The initial value for the corresponding property.</param>
/// <param name="hostileID">The initial value for the corresponding property.</param>
public AllianceHostileTable(DemoGame.AllianceID @allianceID, DemoGame.AllianceID @hostileID)
{
this.AllianceID = (DemoGame.AllianceID)@allianceID;
this.HostileID = (DemoGame.AllianceID)@hostileID;
}
예제 #11
0
/// <summary>
/// Copies the values from the given <paramref name="source"/> into this AllianceHostileTable.
/// </summary>
/// <param name="source">The IAllianceHostileTable to copy the values from.</param>
        public void CopyValuesFrom(IAllianceHostileTable source)
        {
            this.AllianceID = (DemoGame.AllianceID)source.AllianceID;
            this.HostileID  = (DemoGame.AllianceID)source.HostileID;
        }
예제 #12
0
/// <summary>
/// Initializes a new instance of the <see cref="AllianceHostileTable"/> class.
/// </summary>
/// <param name="allianceID">The initial value for the corresponding property.</param>
/// <param name="hostileID">The initial value for the corresponding property.</param>
        public AllianceHostileTable(DemoGame.AllianceID @allianceID, DemoGame.AllianceID @hostileID)
        {
            this.AllianceID = (DemoGame.AllianceID)@allianceID;
            this.HostileID  = (DemoGame.AllianceID)@hostileID;
        }