本文整理汇总了C#中Party.AddPartyMember方法的典型用法代码示例。如果您正苦于以下问题:C# Party.AddPartyMember方法的具体用法?C# Party.AddPartyMember怎么用?C# Party.AddPartyMember使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Party
的用法示例。
在下文中一共展示了Party.AddPartyMember方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GenerateBossParty
public Party GenerateBossParty()
{
Party bossParty = new Party(true);
bossParty.AddPartyMember(ResourceManager.GetNewPartyMember(Area.BossNames.Sample()));
bossParty.InitPartyBattleLayout(arrangement: "\n\n0", minSize: 5);
return bossParty;
}
示例2: GenerateEnemyParty
public Party GenerateEnemyParty()
{
Party enemyParty = new Party(true);
int count = Game1.Random.Next(7) + 1;
for (int i = 0; i < count; ++i)
enemyParty.AddPartyMember(ResourceManager.GetNewPartyMember(Area.EnemyNames.Sample()));
enemyParty.InitPartyBattleLayout(random: true);
return enemyParty;
}
示例3: restart
private void restart()
{
while (Scene.Current != null)
{
Scene.FinishCurrent();
Scene.UpdateCurrent(new Delta(0.001f));
}
Party playerParty = new Party(false);
playerParty.AddPartyMember(new PartyMember(ResourceManager.GetPartyMemberData("marksman")));
playerParty.AddPartyMember(new PartyMember(ResourceManager.GetPartyMemberData("warrior")));
playerParty.AddPartyMember(new PartyMember(ResourceManager.GetPartyMemberData("medic")));
playerParty.AddPartyMember(new PartyMember(ResourceManager.GetPartyMemberData("thief")));
new Overworld(playerParty, ResourceManager.GetNewArea("forest"));
Clock.Init(12);
}