本文整理汇总了C#中GameObjects.GameDate类的典型用法代码示例。如果您正苦于以下问题:C# GameDate类的具体用法?C# GameDate怎么用?C# GameDate使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GameDate类属于GameObjects命名空间,在下文中一共展示了GameDate类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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));
}
示例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));
}
示例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));
}
示例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));
}
示例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);
}
}
示例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;
}
示例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));
}
示例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));
}
示例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));
}
}
示例10: addSelfBecomeEmperorEntry
public void addSelfBecomeEmperorEntry(GameDate date, Faction f)
{
this.addTableEntry(date, composeFactionList(f),
String.Format(yearTableStrings["selfBecomeEmperor"], f.Name, f.Leader.Name), true);
}
示例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);
}
示例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);
}
示例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);
}
}
示例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);
}
示例15: addPersonInGameBiography
public void addPersonInGameBiography(Person p, GameDate date, string content)
{
p.PersonBiography.InGame = date.Year + "年" + date.Month + "月:" + content + '\n' + p.PersonBiography.InGame;
}