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); } }
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)); }
private void TagItemsByTag(string tag) { ParentEvent.AddTargetPredicate(Tag, e => e is Item it && SubmarineTypeMatches(it.Submarine) && it.HasTag(tag)); }
private void TagStructuresByIdentifier(string identifier) { ParentEvent.AddTargetPredicate(Tag, e => e is Structure s && SubmarineTypeMatches(s.Submarine) && s.Prefab.Identifier.Equals(identifier, StringComparison.InvariantCultureIgnoreCase)); }
private void TagBots() { ParentEvent.AddTargetPredicate(Tag, e => e is Character c && c.IsBot); }
private void TagPlayers() { ParentEvent.AddTargetPredicate(Tag, e => e is Character c && c.IsPlayer); }