Пример #1
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);
        }
Пример #2
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);
        }