private void TagBots()
 {
     if (IgnoreIncapacitatedCharacters)
     {
         ParentEvent.AddTargetPredicate(Tag, e => e is Character c && c.IsBot && !c.IsIncapacitated);
     }
     else
     {
         ParentEvent.AddTargetPredicate(Tag, e => e is Character c && c.IsBot);
     }
 }
Exemplo n.º 2
0
 private void TagBots(bool playerCrewOnly)
 {
     if (IgnoreIncapacitatedCharacters)
     {
         ParentEvent.AddTargetPredicate(Tag, e => e is Character c && c.IsBot && !c.IsIncapacitated && (!playerCrewOnly || c.TeamID == CharacterTeamType.Team1));
     }
     else
     {
         ParentEvent.AddTargetPredicate(Tag, e => e is Character c && c.IsBot && (!playerCrewOnly || c.TeamID == CharacterTeamType.Team1));
     }
 }
 private void TagItemsByTag(string tag)
 {
     ParentEvent.AddTargetPredicate(Tag, e => e is Item it && it.HasTag(tag));
 }
 private void TagItemsByIdentifier(string identifier)
 {
     ParentEvent.AddTargetPredicate(Tag, e => e is Item it && it.Prefab.Identifier.Equals(identifier, StringComparison.InvariantCultureIgnoreCase));
 }
Exemplo n.º 5
0
 private void TagItemsByTag(string tag)
 {
     ParentEvent.AddTargetPredicate(Tag, e => e is Item it && SubmarineTypeMatches(it.Submarine) && it.HasTag(tag));
 }
Exemplo n.º 6
0
 private void TagStructuresByIdentifier(string identifier)
 {
     ParentEvent.AddTargetPredicate(Tag, e => e is Structure s && SubmarineTypeMatches(s.Submarine) && s.Prefab.Identifier.Equals(identifier, StringComparison.InvariantCultureIgnoreCase));
 }
Exemplo n.º 7
0
 private void TagBots()
 {
     ParentEvent.AddTargetPredicate(Tag, e => e is Character c && c.IsBot);
 }
Exemplo n.º 8
0
 private void TagPlayers()
 {
     ParentEvent.AddTargetPredicate(Tag, e => e is Character c && c.IsPlayer);
 }