本文整理汇总了C#中Dungeon.RemoveAllPlayers方法的典型用法代码示例。如果您正苦于以下问题:C# Dungeon.RemoveAllPlayers方法的具体用法?C# Dungeon.RemoveAllPlayers怎么用?C# Dungeon.RemoveAllPlayers使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Dungeon
的用法示例。
在下文中一共展示了Dungeon.RemoveAllPlayers方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnCleared
public override void OnCleared(Dungeon dungeon)
{
dungeon.PlayCutscene("RP_Ranald_00_c", cutscene =>
{
var creature = cutscene.Leader.GetActualCreature();
creature.Keywords.Give("RP_Ranald_Complete");
dungeon.RemoveAllPlayers();
});
}
示例2: OnBoss
public override void OnBoss(Dungeon dungeon)
{
dungeon.PlayCutscene("RP_Tracy_00_b", cutscene =>
{
var creature = cutscene.Leader.GetActualCreature();
creature.Keywords.Give("RP_Tracy_Complete");
dungeon.RemoveAllPlayers();
});
}
示例3: OnBoss
public override void OnBoss(Dungeon dungeon)
{
dungeon.PlayCutscene("RP_Monster_Chicken_00_b", cutscene =>
{
var creature = cutscene.Leader.GetActualCreature();
if (!creature.Keywords.Has("RP_Monster_Chicken_complete"))
{
creature.Keywords.Remove("RP_Monster_Chicken_start");
creature.Keywords.Give("RP_Monster_Chicken_complete");
}
dungeon.RemoveAllPlayers();
});
}
示例4: OnCleared
public override void OnCleared(Dungeon dungeon)
{
dungeon.PlayCutscene("G1_38_a_Morrighan", cutscene =>
{
// Switch keywords
var creators = dungeon.GetCreators();
foreach (var member in creators)
{
if (member.Keywords.Has("g1_36"))
{
member.Keywords.Remove("g1_36");
member.Keywords.Give("g1_37");
member.Keywords.Give("g1_revive_of_glasgavelen");
}
}
// Get out
dungeon.RemoveAllPlayers();
});
}
示例5: OnCleared
public override void OnCleared(Dungeon dungeon)
{
dungeon.PlayCutscene("G1_15_c_TarlachRP", cutscene =>
{
// Switch keywords
var creators = dungeon.GetCreators();
foreach (var member in creators)
{
if (member.Keywords.Has("g1_15"))
{
member.Keywords.Remove("g1_15");
member.Keywords.Give("g1_16");
member.Keywords.Remove("g1_dulbrau2");
member.Keywords.Give("g1_succubus");
}
}
// Get out
dungeon.RemoveAllPlayers();
});
}
示例6: OnBoss
public override void OnBoss(Dungeon dungeon)
{
dungeon.AddBoss(120005, 10); // Black Town Rat
dungeon.PlayCutscene("G1_25_d_3WarriorsRP2", cutscene =>
{
var creators = dungeon.GetCreators();
foreach (var member in creators)
{
if (member.Keywords.Has("g1_29"))
{
member.Keywords.Remove("g1_29");
member.Keywords.Give("g1_30");
member.Keywords.Remove("g1_bone_of_glasgavelen");
member.Keywords.Give("g1_goddess_morrighan2");
}
}
// Get out
dungeon.RemoveAllPlayers();
});
}
示例7: OnCleared
public override void OnCleared(Dungeon dungeon)
{
dungeon.PlayCutscene("G1_5_c_3WarriorsRP", cutscene =>
{
// Switch keywords for all members
// Iirc officials do it only for the leader, but really,
// who wants to run this thrice...?
foreach (var member in dungeon.GetCreators())
{
if (member.Keywords.Has("g1_03"))
{
member.Keywords.Remove("g1_03");
member.Keywords.Give("g1_04");
member.Keywords.Remove("g1_tarlach1");
member.Keywords.Remove("g1_tarlach2");
member.Keywords.Give("g1_goddess");
}
}
// Get out
dungeon.RemoveAllPlayers();
});
}