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

C# GameObjects.GameDate类代码示例

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

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



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

示例1: addBecomeEmperorLegallyEntry

 public void addBecomeEmperorLegallyEntry(GameDate date, Person oldEmperor, Faction f)
 {
     this.addTableEntry(date, composeFactionList(f),
         String.Format(yearTableStrings["becomeEmperorLegally"], oldEmperor.Name, f.Name, f.Leader.Name), true);
     this.addPersonInGameBiography(f.Leader, date,
         String.Format(yearTableStrings["becomeEmperorLegally_p"], oldEmperor.Name, f.Name, f.Leader.Name));
 }
开发者ID:kpxp,项目名称:ZhongHuaSanGuoZhi-New-Code,代码行数:7,代码来源:YearTable.cs


示例2: addKingDeathEntry

 public void addKingDeathEntry(GameDate date, Person p, Faction oldFaction)
 {
     this.addTableEntry(date, composeFactionList(oldFaction),
         String.Format(yearTableStrings["kingDeath"], oldFaction.Name, p.Name, p.Age), true);
     this.addPersonInGameBiography(oldFaction.Leader, date,
         String.Format(yearTableStrings["kingDeath_p"], oldFaction.Name, p.Name, p.Age));
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:7,代码来源:YearTable.cs


示例3: addChangeKingEntry

 public void addChangeKingEntry(GameDate date, Person p, Faction oldFaction, Person oldLeader)
 {
     this.addTableEntry(date, composeFactionList(oldFaction),
         String.Format(yearTableStrings["changeKing"], oldFaction.Name, p.Name, oldLeader.Name), true);
     this.addPersonInGameBiography(p, date,
         String.Format(yearTableStrings["changeKing_p"], oldFaction.Name, p.Name, oldLeader.Name));
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:7,代码来源:YearTable.cs


示例4: addAdvanceGuanjueEntry

 public void addAdvanceGuanjueEntry(GameDate date, Faction f, guanjuezhongleilei guanjue)
 {
     this.addTableEntry(date, composeFactionList(f),
         String.Format(yearTableStrings["advanceGuanjue"], f.Name, guanjue.Name), true);
     this.addPersonInGameBiography(f.Leader, date,
         String.Format(yearTableStrings["advanceGuanjue_p"], f.Name, guanjue.Name));
 }
开发者ID:kpxp,项目名称:ZhongHuaSanGuoZhi-New-Code,代码行数:7,代码来源:YearTable.cs


示例5: addChildrenBornEntry

 public void addChildrenBornEntry(GameDate date, Person factionLeader, Person feizi, Person born)
 {
     Faction faction = factionLeader.BelongedFaction;
     if (faction == null)
     {
         if (factionLeader.BelongedArchitecture != null)
         {
             faction = factionLeader.BelongedArchitecture.BelongedFaction;
         }
         else if (factionLeader.BelongedTroop != null)
         {
             faction = factionLeader.BelongedTroop.BelongedFaction;
         }
     }
     if (faction != null)
     {
         this.addTableEntry(date, composeFactionList(faction),
             String.Format(yearTableStrings["childrenBorn"], faction.Name, factionLeader.Name, feizi.Name, (born.Sex ? "女" : "子"), born.Name), false);
     }
     else
     {
         this.addTableEntry(date, composeFactionList(faction),
             String.Format(yearTableStrings["childrenBornNoFaction"], factionLeader.Name, feizi.Name, (born.Sex ? "女" : "子"), born.Name), false);
     }
 }
开发者ID:simon217,项目名称:ZhongHuaSanGuoZhi,代码行数:25,代码来源:YearTable.cs


示例6: YearTableEntry

 public YearTableEntry(int id, GameDate date, FactionList faction, string content, bool isGloballyKnown)
 {
     this.ID = id;
     this.date = new GameDate(date);
     this.content = content;
     this.factions = faction;
     this.isGloballyKnown = isGloballyKnown;
 }
开发者ID:hero1991,项目名称:ZhongHuaSanGuoZhi,代码行数:8,代码来源:YearTableEntry.cs


示例7: addAppointMayorEntry

 //太守
 public void addAppointMayorEntry(GameDate date, Person p, Person leader)
 {
     this.addTableEntry(date, composeFactionList(p.BelongedFaction),
         String.Format(yearTableStrings["appointMayor"], p.Name, p.BelongedArchitecture.Name, leader.Name), false);
     this.addPersonInGameBiography(p, date,
         String.Format(yearTableStrings["appointMayor_p"], p.Name, p.BelongedArchitecture.Name, leader.Name));
     //this.addPersonInGameBiography(leader, date,
     // String.Format(yearTableStrings["appointMayor_q"], p.Name, p.BelongedArchitecture.Name, leader.Name));
 }
开发者ID:kpxp,项目名称:ZhongHuaSanGuoZhi-New-Code,代码行数:10,代码来源:YearTable.cs


示例8: addAssassinateEntry

 public void addAssassinateEntry(GameDate date, Person killer, Person killed)
 {
     this.addTableEntry(date, composeFactionList(killer.BelongedFaction, killed.BelongedFaction),
         String.Format(yearTableStrings["assassinate"], killed.BelongedFaction.Name, killed.Name, killed.LocationArchitecture.Name, killer.BelongedFaction.Name, killer.Name, killed.Age), true);
     this.addPersonInGameBiography(killer, date,
         String.Format(yearTableStrings["assassinate_p"], killed.BelongedFaction.Name, killed.Name, killed.LocationArchitecture.Name, killer.BelongedFaction.Name, killer.Name, killed.Age));
     this.addPersonInGameBiography(killed, date,
         String.Format(yearTableStrings["assassinate_q"], killed.BelongedFaction.Name, killed.Name, killed.LocationArchitecture.Name, killer.BelongedFaction.Name, killer.Name, killed.Age));
 }
开发者ID:kpxp,项目名称:ZhongHuaSanGuoZhi-New-Code,代码行数:9,代码来源:YearTable.cs


示例9: addOccupyEntry

 public void addOccupyEntry(GameDate date, Troop occupier, Architecture occupied)
 {
     if (occupied.BelongedFaction != null)
     {
         this.addTableEntry(date, composeFactionList(occupier.BelongedFaction, occupied.BelongedFaction),
             String.Format(yearTableStrings["occupy"], occupier.BelongedFaction.Name, occupier.DisplayName, occupied.BelongedFaction.Name,
                 occupied.Name), true);
         this.addPersonInGameBiography(occupier.Leader, date, String.Format(yearTableStrings["occupy_p"], occupier.BelongedFaction.Name, 
             occupier.DisplayName, occupied.BelongedFaction.Name, occupied.Name));
     }
     else
     {
         this.addTableEntry(date, composeFactionList(occupier.BelongedFaction, occupied.BelongedFaction),
             String.Format(yearTableStrings["occupyEmpty"], occupier.BelongedFaction.Name, occupier.DisplayName,
                 occupied.Name), true);
         this.addPersonInGameBiography(occupier.Leader, date, String.Format(yearTableStrings["occupyEmpty_p"], occupier.BelongedFaction.Name,
             occupier.DisplayName, occupied.Name));
     }
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:19,代码来源:YearTable.cs


示例10: addSelfBecomeEmperorEntry

 public void addSelfBecomeEmperorEntry(GameDate date, Faction f)
 {
     this.addTableEntry(date, composeFactionList(f),
         String.Format(yearTableStrings["selfBecomeEmperor"], f.Name, f.Leader.Name), true);
 }
开发者ID:simon217,项目名称:ZhongHuaSanGuoZhi,代码行数:5,代码来源:YearTable.cs


示例11: addTableEntry

 public void addTableEntry(int id, GameDate date, FactionList faction, string content, bool global)
 {
     this.Add(new YearTableEntry(id, date, faction, content, global) as GameObject);
 }
开发者ID:simon217,项目名称:ZhongHuaSanGuoZhi,代码行数:4,代码来源:YearTable.cs


示例12: addKingDeathEntry

 public void addKingDeathEntry(GameDate date, Person p, Faction oldFaction)
 {
     this.addTableEntry(date, composeFactionList(oldFaction),
         String.Format(yearTableStrings["kingDeath"], oldFaction.Name, p.Name), true);
 }
开发者ID:simon217,项目名称:ZhongHuaSanGuoZhi,代码行数:5,代码来源:YearTable.cs


示例13: addNewFactionEntry

 public void addNewFactionEntry(GameDate date, Faction oldFaction, Faction newFaction, Architecture foundLocation)
 {
     if (oldFaction != null)
     {
         this.addTableEntry(date, composeFactionList(oldFaction, newFaction),
             String.Format(yearTableStrings["newFaction"], newFaction.Leader, oldFaction.Name, foundLocation.Name), true);
     }
     else
     {
         this.addTableEntry(date, composeFactionList(oldFaction, newFaction),
             String.Format(yearTableStrings["newFactionOnEmpty"], newFaction.Leader, foundLocation.Name), true);
     }
 }
开发者ID:simon217,项目名称:ZhongHuaSanGuoZhi,代码行数:13,代码来源:YearTable.cs


示例14: addChangeKingEntry

 public void addChangeKingEntry(GameDate date, Person p)
 {
     this.addTableEntry(date, composeFactionList(p.BelongedFaction),
         String.Format(yearTableStrings["changeKing"], p.BelongedFaction.Name, p.Name), true);
 }
开发者ID:simon217,项目名称:ZhongHuaSanGuoZhi,代码行数:5,代码来源:YearTable.cs


示例15: addPersonInGameBiography

 public void addPersonInGameBiography(Person p, GameDate date, string content)
 {
     p.PersonBiography.InGame = date.Year + "年" + date.Month + "月:" + content + '\n' + p.PersonBiography.InGame;
 }
开发者ID:kpxp,项目名称:ZhongHuaSanGuoZhi-New-Code,代码行数:4,代码来源:YearTable.cs


示例16: addExecuteEntry

 public void addExecuteEntry(GameDate date, Person executor, Person executed)
 {
     if (executed.BelongedFaction != null)
     {
         this.addTableEntry(date, composeFactionList(executor.BelongedFaction, executed.BelongedFaction),
             String.Format(yearTableStrings["execute"], executor.Name, executed.BelongedFaction.Name, executed.Name), true);
     }
     else
     {
         this.addTableEntry(date, composeFactionList(executor.BelongedFaction),
             String.Format(yearTableStrings["executeNoFaction"], executor.Name, executed.Name, ""), true);
     }
 }
开发者ID:simon217,项目名称:ZhongHuaSanGuoZhi,代码行数:13,代码来源:YearTable.cs


示例17: addChangeCapitalEntry

 public void addChangeCapitalEntry(GameDate date, Faction f, Architecture newCapital)
 {
     this.addTableEntry(date, composeFactionList(f),
         String.Format(yearTableStrings["changeCapital"], f.Name, newCapital.Name), true);
 }
开发者ID:simon217,项目名称:ZhongHuaSanGuoZhi,代码行数:5,代码来源:YearTable.cs


示例18: addOutOfPrincessEntry

 public void addOutOfPrincessEntry(GameDate date, Person p, Faction capturer)
 {
     this.addPersonInGameBiography(p, date,
         String.Format(yearTableStrings["outOfPrincess_p"], p.Name, p.BelongedArchitecture.Name, capturer == null ? "贼军" : capturer.Name, capturer.Leader.Name));
 }
开发者ID:kpxp,项目名称:ZhongHuaSanGuoZhi-New-Code,代码行数:5,代码来源:YearTable.cs


示例19: addOutOfPrincessByLeaderDeathEntry

 public void addOutOfPrincessByLeaderDeathEntry(GameDate date, Person p, Faction capturer)
 {
     this.addTableEntry(date, composeFactionList(p.BelongedFaction, capturer),
         String.Format(yearTableStrings["outOfPrincessByLeaderDeath"], p.Name, p.BelongedArchitecture.Name, capturer == null ? "贼军" : capturer.Name, capturer.Leader.Name), false);
     this.addPersonInGameBiography(p, date,
         String.Format(yearTableStrings["outOfPrincessByLeaderDeath_p"], p.Name, p.BelongedArchitecture.Name, capturer == null ? "贼军" : capturer.Name, capturer.Leader.Name));
 }
开发者ID:kpxp,项目名称:ZhongHuaSanGuoZhi-New-Code,代码行数:7,代码来源:YearTable.cs


示例20: addBecomeNoFactionEntry

 public void addBecomeNoFactionEntry(GameDate date, Person p, Faction f)
 {
     this.addPersonInGameBiography(p, date,
         String.Format(yearTableStrings["becomeNoFaction_p"], f.Name));
 }
开发者ID:kpxp,项目名称:ZhongHuaSanGuoZhi-New-Code,代码行数:5,代码来源:YearTable.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# GameObjects.GameObjectList类代码示例发布时间:2022-05-26
下一篇:
C# GameObjects.GameArea类代码示例发布时间: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