• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# GameObjects.GameScenario类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中GameObjects.GameScenario的典型用法代码示例。如果您正苦于以下问题:C# GameScenario类的具体用法?C# GameScenario怎么用?C# GameScenario使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



GameScenario类属于GameObjects命名空间,在下文中一共展示了GameScenario类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Create

 public static Military Create(GameScenario scenario, Architecture architecture, MilitaryKind kind)
 {
     Military military = new Military();
     military.Scenario = scenario;
     military.KindID = kind.ID;
     military.ID = scenario.Militaries.GetFreeGameObjectID();
     if (kind.RecruitLimit == 1)
     {
         military.Name = kind.Name;
     }
     else
     {
         military.Name = kind.Name + "队";
     }
     architecture.AddMilitary(military);
     architecture.BelongedFaction.AddMilitary(military);
     scenario.Militaries.AddMilitary(military);
     architecture.DecreaseFund((int) (kind.CreateCost * kind.GetRateOfNewMilitary(architecture)));
     if (kind.IsTransport)
     {
         military.Quantity = kind.MaxScale;
         military.Morale = military.MoraleCeiling;
         military.Combativity = military.CombativityCeiling;
     }
     return military;
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:26,代码来源:Military.cs


示例2: AddBasicMilitaryKinds

 public void AddBasicMilitaryKinds(GameScenario scen)
 {
     this.AddMilitaryKind(scen.GameCommonData.AllMilitaryKinds.GetMilitaryKindList().GetGameObject(0) as MilitaryKind);
     this.AddMilitaryKind(scen.GameCommonData.AllMilitaryKinds.GetMilitaryKindList().GetGameObject(1) as MilitaryKind);
     this.AddMilitaryKind(scen.GameCommonData.AllMilitaryKinds.GetMilitaryKindList().GetGameObject(2) as MilitaryKind);
     this.AddMilitaryKind(scen.GameCommonData.AllMilitaryKinds.GetMilitaryKindList().GetGameObject(30) as MilitaryKind);
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:7,代码来源:MilitaryKindTable.cs


示例3: CheckPoint

 private static void CheckPoint(GameArea Area, List<Point> BlackAngles, Point point, GameScenario Scenario, Faction faction)
 {
     TerrainDetail terrainDetailByPosition = Scenario.GetTerrainDetailByPosition(point);
     if (terrainDetailByPosition != null)
     {
         if (terrainDetailByPosition.ViewThrough)
         {
             if (faction != null)
             {
                 Architecture architectureByPosition = Scenario.GetArchitectureByPosition(point);
                 if (!(architectureByPosition == null || architectureByPosition.Endurance <= 0 || faction.IsFriendlyWithoutTruce(architectureByPosition.BelongedFaction)))
                 {
                     BlackAngles.Add(point);
                     return;
                 }
             }
             if (!IsInBlackAngle(Area.Centre, BlackAngles, point))
             {
                 Area.AddPoint(point);
             }
         }
         else
         {
             BlackAngles.Add(point);
         }
     }
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:27,代码来源:GameArea.cs


示例4: DiplomaticRelation

 public DiplomaticRelation(GameScenario scenario, int faction1ID, int faction2ID, int relation)
 {
     this.relationFaction1ID = -1;
     this.relationFaction2ID = -1;
     base.Scenario = scenario;
     this.RelationFaction1ID = faction1ID;
     this.RelationFaction2ID = faction2ID;
     this.Relation = relation;
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:9,代码来源:DiplomaticRelation.cs


示例5: AddDiplomaticRelation

 public bool AddDiplomaticRelation(GameScenario scenario, int faction1ID, int faction2ID, int relation)
 {
     int hashCode = this.GetHashCode(faction1ID, faction2ID);
     int key = this.GetHashCode(faction2ID, faction1ID);
     if (this.DiplomaticRelations.ContainsKey(hashCode) || this.DiplomaticRelations.ContainsKey(key))
     {
         return false;
     }
     this.DiplomaticRelations.Add(hashCode, new DiplomaticRelation(scenario, faction1ID, faction2ID, relation));
     return true;
 }
开发者ID:hero1991,项目名称:ZhongHuaSanGuoZhi,代码行数:11,代码来源:DiplomaticRelationTable.cs


示例6: RemoveMilitaryKind

 public bool RemoveMilitaryKind(GameScenario scenario, int kind)
 {
     if (!this.MilitaryKinds.ContainsKey(kind))
     {
         return false;
     }
     MilitaryKind militaryKind = scenario.GameCommonData.AllMilitaryKinds.GetMilitaryKind(kind);
     if (militaryKind != null)
     {
         this.MilitaryKinds.Remove(militaryKind.ID);
     }
     return true;
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:13,代码来源:MilitaryKindTable.cs


示例7: GetAreaFromArea

 public static GameArea GetAreaFromArea(GameArea area, int Radius, bool Oblique, GameScenario Scenario, Faction faction)
 {
     Dictionary<Point, object> closedList = new Dictionary<Point, object>();
     GameArea area2 = new GameArea();
     foreach (Point point in area.Area)
     {
         area2.CombineArea(GetViewArea(point, Radius, Oblique, Scenario, faction), closedList);
     }
     foreach (Point point in closedList.Keys)
     {
         area2.Area.Add(point);
     }
     return area2;
 }
开发者ID:simon217,项目名称:ZhongHuaSanGuoZhi,代码行数:14,代码来源:GameArea.cs


示例8: GetDiplomaticRelation

 public DiplomaticRelation GetDiplomaticRelation(GameScenario scenario, int faction1ID, int faction2ID)
 {
     int hashCode = this.GetHashCode(faction1ID, faction2ID);
     DiplomaticRelation relation = null;
     this.DiplomaticRelations.TryGetValue(hashCode, out relation);
     if (relation == null)
     {
         hashCode = this.GetHashCode(faction2ID, faction1ID);
         this.DiplomaticRelations.TryGetValue(hashCode, out relation);
     }
     if (relation == null)
     {
         relation = new DiplomaticRelation(scenario, faction1ID, faction2ID, 0);
     }
     return relation;
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:16,代码来源:DiplomaticRelationTable.cs


示例9: Create

 public static Captive Create(GameScenario scenario, Person person, Faction capturingFaction)
 {
     if (person.BelongedFaction == null)
     {
         return null;
     }
     if (person.BelongedFaction == capturingFaction)
     {
         return null;
     }
     Captive captive = new Captive();
     captive.Scenario = scenario;
     captive.ID = scenario.Captives.GetFreeGameObjectID();
     captive.CaptivePerson = person;
     captive.CaptiveFaction = person.BelongedFaction;
     person.SetBelongedCaptive(captive, GameObjects.PersonDetail.PersonStatus.Captive);
     person.HeldCaptiveCount++;
     scenario.Captives.AddCaptiveWithEvent(captive);
     return captive;
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:20,代码来源:Captive.cs


示例10: ChallgenEvent

        private bool ChallengeOftenShow = false;  //暴击必然触发单挑,调试单挑程序用,默认为false


        internal void ChallgenEvent(Troop sourceTroop, Troop troop, TroopDamage damage, GameScenario gameScenario)
        {
            if ((!sourceTroop.IsFriendly(troop.BelongedFaction) && !sourceTroop.AirOffence) && (this.ChallengeOftenShow || GameObject.Chance(20)))
            {
                Person maxStrengthPerson = sourceTroop.Persons.GetMaxStrengthPerson();
                Person destination = troop.Persons.GetMaxStrengthPerson();
                if (((maxStrengthPerson != null) && (destination != null)) && (this.ChallengeOftenShow || (GameObject.Random(GameObject.Square(destination.Calmness)) < GameObject.Random(0x19))))
                {
                    if (maxStrengthPerson.IsCivil() || destination.IsCivil())  //文官不单挑
                    {
                        return;
                    }
                    int chance = Person.ChanlengeWinningChance(maxStrengthPerson, destination);
                    if (this.ChallengeOftenShow || (maxStrengthPerson.Character.ChallengeChance + chance) >= 60)
                    {
                        this.challengeHappen(damage, maxStrengthPerson, destination, chance, gameScenario);
                    }
                }
            }
        }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:23,代码来源:Challenge.cs


示例11: Create

 public static Captive Create(GameScenario scenario, Person person, Faction faction)
 {
     if (person.BelongedFaction == null)
     {
         return null;
     }
     if (person.BelongedFaction == faction)
     {
         return null;
     }
     Captive captive = new Captive();
     captive.Scenario = scenario;
     captive.ID = scenario.Captives.GetFreeGameObjectID();
     captive.CaptivePerson = person;
     person.BelongedCaptive = captive;
     captive.CaptiveFaction = person.BelongedFaction;
     scenario.Captives.AddCaptiveWithEvent(captive);
     captive.CaptiveFaction.AddSelfCaptive(captive);
     faction.AddCaptive(captive);
     return captive;
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:21,代码来源:Captive.cs


示例12: challengeHappen

        private void challengeHappen(TroopDamage damage, Person maxStrengthPerson, Person destination, int chance,GameScenario scenario)
        {
            int flag = 0;
            damage.ChallengeHappened = true;  //单挑发生
            if ((GlobalVariables.ShowChallengeAnimation) &&
                (scenario.IsPlayer(maxStrengthPerson.BelongedFaction) || scenario.IsPlayer(destination.BelongedFaction) || GlobalVariables.SkyEye || this.ChallengeOftenShow))  //单挑双方有玩家的武将才演示
            {
                try
                {
                    int returnValue;
                    returnValue = this.challengeShow(maxStrengthPerson, destination);
                    //returnValue = 10;
                    if (returnValue >= -4 && returnValue <= 10 && returnValue != 0)
                    {
                        flag = returnValue;
                    }
                    else   //返回值出错时避免跳出
                    {
                        flag = (GameObject.Chance(chance) ? 1 : 2);
                    }

                }
                catch
                {
                    flag = (GameObject.Chance(chance) ? 1 : 2);
                }
            }
            else
            {
                flag = (GameObject.Chance(chance) ? 1 : 2);
            }

            //flag = -4;

            damage.ChallengeResult = flag;
            damage.ChallengeSourcePerson = maxStrengthPerson;
            damage.ChallengeDestinationPerson = destination;

        }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:39,代码来源:Challenge.cs


示例13: SimCreate

 public static Military SimCreate(GameScenario scenario, Architecture architecture, MilitaryKind kind)
 {
     Military military = new Military();
     military.Scenario = scenario;
     military.KindID = kind.ID;
     military.ID = scenario.Militaries.GetFreeGameObjectID();
     if (kind.RecruitLimit == 1)
     {
         military.Name = kind.Name;
         return military;
     }
     military.Name = kind.Name + "队";
     return military;
 }
开发者ID:kpxp,项目名称:ZhongHuaSanGuoZhi-New-Code,代码行数:14,代码来源:Military.cs


示例14: Initialize

 public void Initialize(GameScenario scenario)
 {
     this.gameScenario = scenario;
 }
开发者ID:kpxp,项目名称:ZhongHuaSanGuoZhi-New-Code,代码行数:4,代码来源:ScreenManager.cs


示例15: LoadPersonGeneratorSetting

        public List<string> LoadPersonGeneratorSetting(OleDbConnection connection, GameScenario scen)
        {
            connection.Open();
            OleDbDataReader reader = new OleDbCommand("Select * From PersonGenerator", connection).ExecuteReader();
            while (reader.Read())
            {
                this.PersonGeneratorSetting.bornLo = (int)reader["BornLo"];
                this.PersonGeneratorSetting.bornHi = (int)reader["BornHi"];
                this.PersonGeneratorSetting.debutLo = (int)reader["DebutLo"];
                this.PersonGeneratorSetting.debutHi = (int)reader["DebutHi"];
                this.PersonGeneratorSetting.dieLo = (int)reader["DieLo"];
                this.PersonGeneratorSetting.dieHi = (int)reader["DieHi"];
                this.PersonGeneratorSetting.femaleChance = (int)reader["FemaleChance"];
                this.PersonGeneratorSetting.debutAtLeast = (int)reader["DebutAtLeast"];
            }
            connection.Close();

            return new List<string>();
        }
开发者ID:hero1991,项目名称:ZhongHuaSanGuoZhi,代码行数:19,代码来源:CommonData.cs


示例16: IsStart

 public bool IsStart(GameScenario scenario)
 {
     Condition cstart = scenario.GameCommonData.AllConditions.GetCondition(9998);
     return this.architectureCond.Contains(cstart) || this.factionCond.Contains(cstart);
 }
开发者ID:ptmaster,项目名称:ZhongHuaSanGuoZhi,代码行数:5,代码来源:Event.cs


示例17: GetContactArea

 public GameArea GetContactArea(bool oblique, GameScenario scen, bool waterOnly, bool landOnly)
 {
     GameArea area = new GameArea();
     Dictionary<Point, object> dictionary = new Dictionary<Point, object>();
     foreach (Point point2 in this.Area)
     {
         bool ok = true;
         if (waterOnly && scen.GetTerrainDetailByPositionNoCheck(point2).ID != 6)
         {
             ok = false;
         }
         if (landOnly && scen.GetTerrainDetailByPositionNoCheck(point2).ID == 6)
         {
             ok = false;
         }
         if (ok)
         {
             dictionary.Add(point2, null);
         }
     }
     foreach (Point point2 in this.Area)
     {
         Point key = new Point(point2.X - 1, point2.Y);
         if (!dictionary.ContainsKey(key) && (!waterOnly || scen.GetTerrainDetailByPositionNoCheck(point2).ID == 6))
         {
             dictionary.Add(key, null);
             area.AddPoint(key);
         }
         key = new Point(point2.X + 1, point2.Y);
         if (!dictionary.ContainsKey(key) && (!waterOnly || scen.GetTerrainDetailByPositionNoCheck(point2).ID == 6))
         {
             dictionary.Add(key, null);
             area.AddPoint(key);
         }
         key = new Point(point2.X, point2.Y - 1);
         if (!dictionary.ContainsKey(key) && (!waterOnly || scen.GetTerrainDetailByPositionNoCheck(point2).ID == 6))
         {
             dictionary.Add(key, null);
             area.AddPoint(key);
         }
         key = new Point(point2.X, point2.Y + 1);
         if (!dictionary.ContainsKey(key) && (!waterOnly || scen.GetTerrainDetailByPositionNoCheck(point2).ID == 6))
         {
             dictionary.Add(key, null);
             area.AddPoint(key);
         }
         if (oblique)
         {
             key = new Point(point2.X - 1, point2.Y - 1);
             if (!dictionary.ContainsKey(key) && (!waterOnly || scen.GetTerrainDetailByPositionNoCheck(point2).ID == 6))
             {
                 dictionary.Add(key, null);
                 area.AddPoint(key);
             }
             key = new Point(point2.X + 1, point2.Y - 1);
             if (!dictionary.ContainsKey(key) && (!waterOnly || scen.GetTerrainDetailByPositionNoCheck(point2).ID == 6))
             {
                 dictionary.Add(key, null);
                 area.AddPoint(key);
             }
             key = new Point(point2.X - 1, point2.Y + 1);
             if (!dictionary.ContainsKey(key) && (!waterOnly || scen.GetTerrainDetailByPositionNoCheck(point2).ID == 6))
             {
                 dictionary.Add(key, null);
                 area.AddPoint(key);
             }
             key = new Point(point2.X + 1, point2.Y + 1);
             if (!dictionary.ContainsKey(key) && (!waterOnly || scen.GetTerrainDetailByPositionNoCheck(point2).ID == 6))
             {
                 dictionary.Add(key, null);
                 area.AddPoint(key);
             }
         }
     }
     return area;
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:76,代码来源:GameArea.cs


示例18: Initialize

 public void Initialize(GameScenario scenario, MainGameScreen screen, GraphicsDevice device)
 {
     this.gameScenario = scenario;
     this.mainMap = scenario.ScenarioMap;
     this.screen = screen;
     this.device = device;
     this.TerrainList.Clear();
     for (int i = 0; i < Enum.GetValues(typeof(TerrainKind)).Length; i++)
     {
         this.TerrainList.Add(0);
     }
 }
开发者ID:kanjianlema,项目名称:ZhongHuaSanGuoZhi,代码行数:12,代码来源:MainMapLayer.cs


示例19: HandleChallengeResult

        internal void HandleChallengeResult(TroopDamage damage, int result, Troop sourceTroop, Person sourcePerson, Troop destinationTroop, Person destinationPerson, GameScenario scenario)
        {
            scenario.GameScreen.TroopPersonChallenge(result, sourceTroop, sourcePerson, destinationTroop, destinationPerson);

            switch (result)
            {
                case 1: //P1武将胜利
                    sourcePerson.Scenario.YearTable.addChallengeEntry(sourcePerson.Scenario.Date, sourcePerson, destinationPerson, "被打下馬");
                    damage.SourceMoraleChange += 20;
                    damage.DestinationMoraleChange -= 20;
                    damage.SourceCombativityChange += 20;
                    damage.DestinationCombativityChange -= 20;  //第2只军队战意下降
                    break;
                case 2: //2:P2武将胜利
                    sourcePerson.Scenario.YearTable.addChallengeEntry(sourcePerson.Scenario.Date, destinationPerson, sourcePerson, "被打下馬");
                    damage.SourceMoraleChange -= 20;
                    damage.DestinationMoraleChange += 20;
                    damage.SourceCombativityChange -= 20;
                    damage.DestinationCombativityChange += 20;
                    break;
                case 3: //3:P1武将被杀
                    sourcePerson.Scenario.YearTable.addChallengeEntry(sourcePerson.Scenario.Date, destinationPerson, sourcePerson, "被擊殺");
                    this.challengePersonDie(sourcePerson,sourceTroop, destinationPerson);
                    damage.SourceMoraleChange -= 30;
                    damage.DestinationMoraleChange += 30;
                    damage.SourceCombativityChange -= 30;
                    damage.DestinationCombativityChange += 30;
                    break;
                case 4: //4:P2武将被杀
                    sourcePerson.Scenario.YearTable.addChallengeEntry(sourcePerson.Scenario.Date, sourcePerson, destinationPerson, "被擊殺");
                    this.challengePersonDie(destinationPerson, destinationTroop, sourcePerson);
                    damage.SourceMoraleChange += 30;
                    damage.DestinationMoraleChange -= 30;
                    damage.SourceCombativityChange += 30;
                    damage.DestinationCombativityChange -= 30;
                    break;
                case 5: //5:P1武将逃跑
                    sourcePerson.Scenario.YearTable.addChallengeEntry(sourcePerson.Scenario.Date, destinationPerson, sourcePerson, "逃跑");
                    damage.SourceMoraleChange -= 20;
                    damage.DestinationMoraleChange += 20;
                    break;
                case 6: //6:P2武将逃跑
                    sourcePerson.Scenario.YearTable.addChallengeEntry(sourcePerson.Scenario.Date, sourcePerson, destinationPerson, "逃跑");
                    damage.SourceMoraleChange += 20;
                    damage.DestinationMoraleChange -= 20;
                    break;
                case 7: //7、P1武将被俘虏
                    sourcePerson.Scenario.YearTable.addChallengeEntry(sourcePerson.Scenario.Date, destinationPerson, sourcePerson, "被俘虜");
                    destinationTroop.CatchCaptiveFromTroop(sourcePerson);
                    sourceTroop.RefreshAfterLosePerson();
                    damage.SourceMoraleChange -= 20;
                    damage.DestinationMoraleChange += 20;
                    damage.SourceCombativityChange -= 20;
                    damage.DestinationCombativityChange += 20;
                    break;
                case 8: //8、P2武将被俘虏
                    sourcePerson.Scenario.YearTable.addChallengeEntry(sourcePerson.Scenario.Date, sourcePerson, destinationPerson, "被俘虜");
                    sourceTroop.CatchCaptiveFromTroop(destinationPerson);
                    destinationTroop.RefreshAfterLosePerson();
                    damage.SourceMoraleChange += 20;
                    damage.DestinationMoraleChange -= 20;
                    damage.SourceCombativityChange += 20;
                    damage.DestinationCombativityChange -= 20; 
                    break;
                case 9: //9、P1武将被说服
                    sourcePerson.Scenario.YearTable.addChallengeEntry(sourcePerson.Scenario.Date, destinationPerson, sourcePerson, "被說服");
                    destinationPerson.ConvincePersonSuccess(sourcePerson);
                    damage.SourceCombativityChange -= 30;
                    damage.DestinationCombativityChange += 30;
                    break;
                case 10: //10、P2武将被说服
                    sourcePerson.Scenario.YearTable.addChallengeEntry(sourcePerson.Scenario.Date, sourcePerson, destinationPerson, "被說服");
                    sourcePerson.ConvincePersonSuccess(destinationPerson);
                    damage.SourceCombativityChange += 30;
                    damage.DestinationCombativityChange -= 30; 
                    break;
                case -1: //-1:平局
                    sourcePerson.Scenario.YearTable.addChallengeDrawEntry(sourcePerson.Scenario.Date, sourcePerson, destinationPerson);
                    break;
                case -2: //-2:平局:P1武将被杀
                    sourcePerson.Scenario.YearTable.addChallengeDrawKilledEntry(sourcePerson.Scenario.Date, destinationPerson, sourcePerson);
                    this.challengePersonDie(sourcePerson, sourceTroop, destinationPerson);
                    break;
                case -3: //-3:平局:P2武将被杀
                    sourcePerson.Scenario.YearTable.addChallengeDrawKilledEntry(sourcePerson.Scenario.Date, sourcePerson, destinationPerson);
                    this.challengePersonDie(destinationPerson, destinationTroop, sourcePerson);
                    break;
                case -4: //-4:平局:双方武将被杀
                    sourcePerson.Scenario.YearTable.addChallengeDrawBothKilledEntry(sourcePerson.Scenario.Date, sourcePerson, destinationPerson);
                    this.challengePersonDie(sourcePerson, sourceTroop, destinationPerson);
                    this.challengePersonDie(destinationPerson, destinationTroop, sourcePerson);
                    break;
            }


        }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:96,代码来源:Challenge.cs


示例20: LoadPersonGeneratorTypes

        public List<string> LoadPersonGeneratorTypes(OleDbConnection connection, GameScenario scen)
        {
            connection.Open();
            OleDbDataReader reader = new OleDbCommand("Select * From PersonGeneratorType", connection).ExecuteReader();
            bool hasZero = false;
            while (reader.Read())
            {
                PersonGeneratorType type = new PersonGeneratorType();
                type.ID = (int)reader["ID"];
                if (type.ID == 0)
                {
                    hasZero = true;
                }
                type.Name = reader["TypeName"].ToString();
                type.generationChance = (int)reader["GenerationChance"];
                type.commandLo = (int)reader["CommandLo"];
                type.commandHi = (int)reader["CommandHi"];
                type.strengthLo = (int)reader["StrengthLo"];
                type.strengthHi = (int)reader["StrengthHi"];
                type.intelligenceLo = (int)reader["IntelligenceLo"];
                type.intelligenceHi = (int)reader["IntelligenceHi"];
                type.politicsLo = (int)reader["PoliticsLo"];
                type.politicsHi = (int)reader["PoliticsHi"];
                type.glamourLo = (int)reader["GlamourLo"];
                type.glamourHi = (int)reader["GlamourHi"];
                type.braveLo = (int)reader["BraveLo"];
                type.braveHi = (int)reader["BraveHi"];
                type.calmnessLo = (int)reader["CalmnessLo"];
                type.calmnessHi = (int)reader["CalmnessHi"];
                type.personalLoyaltyLo = (int)reader["PersonalLoyaltyLo"];
                type.personalLoyaltyHi = (int)reader["PersonalLoyaltyHi"];
                type.ambitionLo = (int)reader["AmbitionLo"];
                type.ambitionHi = (int)reader["AmbitionHi"];
                type.titleChance = (int)reader["TitleChance"];
                type.affectedByRateParameter = (bool)reader["AffectedByRateParameter"];
                this.AllPersonGeneratorTypes.Add(type);
            }
            connection.Close();

            // for backward compatibility
            if (!hasZero)
            {
                foreach (PersonGeneratorType type in this.AllPersonGeneratorTypes)
                {
                    type.ID--;
                }
            }

            return new List<string>();
        }
开发者ID:hero1991,项目名称:ZhongHuaSanGuoZhi,代码行数:50,代码来源:CommonData.cs



注:本文中的GameObjects.GameScenario类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# GameObjects.LinkNode类代码示例发布时间:2022-05-26
下一篇:
C# GameObjects.GameObjectList类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap