#[non_exhaustive]pub enum Item {
Show 279 variants
Accessory,
AccessoryTag,
AccessoryVariation,
AccessoryVariationLayout,
AccessoryVariationTextures,
Achievement,
AchievementGroup,
Asset,
BlendShape,
CharacterInteraction,
Coa,
CoaColorList,
CoaColoredEmblemList,
CoaDesignerColorPalette,
CoaDesignerColoredEmblem,
CoaDesignerEmblemLayout,
CoaDesignerPattern,
CoaPatternList,
CoaTemplate,
CoaTemplateList,
CoaTexturedEmblemList,
Culture,
CustomLocalization,
Decision,
Define,
Directory,
Dlc,
DlcFeature,
DlcName,
EffectLocalization,
Entity,
Entry,
Ethnicity,
Event,
EventNamespace,
File,
Font,
Fontfiles,
GameConcept,
GameRule,
GameRuleSetting,
GeneAgePreset,
GeneAttribute,
GeneCategory,
GovernmentType,
GuiLayer,
GuiTemplate,
GuiType,
LawGroup,
Localization,
MapEnvironment,
MapMode,
Modifier,
Music,
MusicPlayerCategory,
NamedColor,
OnAction,
Pdxmesh,
PortraitAnimation,
PortraitCamera,
PortraitEnvironment,
PortraitModifierGroup,
PortraitModifierPack,
Province,
Religion,
ScriptedEffect,
ScriptedGui,
ScriptedList,
ScriptedModifier,
ScriptedRule,
ScriptedTrigger,
ScriptValue,
Shortcut,
Sound,
Terrain,
TextFormat,
TextIcon,
TextureFile,
TriggerLocalization,
WidgetName,
Building,
CharacterTemplate,
DeathReason,
Dna,
EventTheme,
Law,
Message,
Region,
TutorialLesson,
TutorialLessonChain,
TutorialLessonStep,
AccoladeCategory,
AccoladeIcon,
AccoladeName,
AccoladeParameter,
AccoladeType,
ActivityGroupType,
ActivityIntent,
ActivityLocale,
ActivityOption,
ActivityOptionCategory,
ActivityPhase,
ActivityPulseAction,
ActivityState,
ActivityType,
AiWarStance,
AgentType,
Amenity,
AmenitySetting,
ArtifactBlueprint,
ArtifactFeature,
ArtifactFeatureGroup,
ArtifactHistory,
ArtifactRarity,
ArtifactSlot,
ArtifactSlotType,
ArtifactTemplate,
ArtifactType,
ArtifactVisual,
Bookmark,
BookmarkGroup,
BookmarkPortrait,
BuildingFlag,
BuildingGfx,
CasusBelli,
CasusBelliGroup,
Catalyst,
ChallengeCharacter,
Character,
CharacterBackground,
CharacterInteractionCategory,
Climate,
ClothingGfx,
CoaGfx,
CoaDynamicDefinition,
CombatEffect,
CombatPhaseEvent,
CouncilPosition,
CouncilTask,
Countermeasure,
CountermeasureParameter,
CourtPosition,
CourtPositionTask,
CourtSceneCulture,
CourtSceneGroup,
CourtSceneRole,
CourtSceneSetting,
CourtType,
CourtierGuestManagement,
CultureAesthetic,
CultureCreationName,
CultureEra,
CultureEthos,
CultureHeritage,
CultureHistory,
CultureParameter,
CulturePillar,
CultureTradition,
CultureTraditionCategory,
DangerType,
DecisionGroup,
DiarchyMandate,
DiarchyParameter,
DiarchyType,
Doctrine,
DoctrineCategory,
DoctrineParameter,
DomicileBuilding,
DomicileParameter,
DomicileType,
Dynasty,
DynastyLegacy,
DynastyPerk,
EpidemicType,
EpidemicDeathReason,
EventBackground,
EventEffect2d,
EventTransition,
Faction,
Faith,
FaithIcon,
FervorModifier,
Flavorization,
Focus,
GeneticConstraint,
GovernmentFlag,
GraphicalFaith,
GuestInviteRule,
GuestSubset,
GuestSystem,
HoldingFlag,
HoldingType,
HolySite,
HolySiteFlag,
Hook,
House,
HousePowerBonus,
HouseUnity,
HouseUnityParameter,
HouseUnityStage,
ImportantAction,
Innovation,
InnovationFlag,
Inspiration,
Language,
LawFlag,
LeaseContract,
LegendChapter,
LegendChronicle,
LegendProperty,
LegendSeed,
LegendType,
LegitimacyFlag,
LegitimacyType,
Lifestyle,
MartialCustom,
MemoryCategory,
MemoryType,
MenAtArms,
MenAtArmsBase,
MessageFilterType,
MessageGroupType,
ModifierFormat,
MottoInsert,
Motto,
NameEquivalency,
NameList,
Nickname,
OpinionModifier,
Perk,
PerkTree,
PlayableDifficultyInfo,
PointOfInterest,
PoolSelector,
PortraitType,
PrisonType,
ProvinceMapping,
Relation,
RelationFlag,
ReligionFamily,
RewardItem,
Scheme,
SchemePulseAction,
ScriptedAnimation,
ScriptedCost,
ScriptedIllustration,
Secret,
Sexuality,
Skill,
SpecialBuilding,
SpecialGuest,
Story,
Struggle,
StruggleHistory,
StrugglePhase,
StrugglePhaseParameter,
SuccessionAppointment,
SuccessionElection,
Suggestion,
TaskContractGroup,
TaskContractReward,
TaskContractType,
TaxSlotFlag,
TaxSlotObligation,
TaxSlotType,
Title,
TitleHistory,
TitleHistoryType,
Trait,
TraitCategory,
TraitFlag,
TraitPortraitModifier,
TraitTrack,
TravelOption,
UnitGfx,
VassalContract,
VassalContractFlag,
VassalObligationLevel,
VassalStance,
}Expand description
“items” are all the things that can be looked up in the game databases.
Anything that can be looked up in script with a literal string key, or that’s loaded into
tiger’s database and needs a unique key, is an Item.
There is some overlap with scopes, for example “culture” is both an Item and a scope type,
but the difference is that scopes are runtime values while items are always strings.
For example if a trigger takes a culture scope, you could supply either culture:german or
scope:target_culture, while if a trigger takes a culture item, you would have to supply just
german and don’t have the option of supplying something determined at runtime.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Accessory
AccessoryTag
AccessoryVariation
AccessoryVariationLayout
AccessoryVariationTextures
Achievement
AchievementGroup
Asset
BlendShape
CharacterInteraction
Coa
CoaColorList
CoaColoredEmblemList
CoaDesignerColorPalette
CoaDesignerColoredEmblem
CoaDesignerEmblemLayout
CoaDesignerPattern
CoaPatternList
CoaTemplate
CoaTemplateList
CoaTexturedEmblemList
Culture
CustomLocalization
Decision
Define
Directory
Dlc
DlcFeature
DlcName
EffectLocalization
Entity
Entry
Ethnicity
Event
EventNamespace
File
Font
Fontfiles
GameConcept
GameRule
GameRuleSetting
GeneAgePreset
GeneAttribute
GeneCategory
GovernmentType
GuiLayer
GuiTemplate
GuiType
LawGroup
Localization
MapEnvironment
MapMode
Modifier
Music
MusicPlayerCategory
NamedColor
OnAction
Pdxmesh
PortraitAnimation
PortraitCamera
PortraitEnvironment
PortraitModifierGroup
PortraitModifierPack
Province
Religion
ScriptedEffect
ScriptedGui
ScriptedList
ScriptedModifier
ScriptedRule
ScriptedTrigger
ScriptValue
Shortcut
Sound
Terrain
TextFormat
TextIcon
TextureFile
TriggerLocalization
WidgetName
Building
CharacterTemplate
DeathReason
Dna
EventTheme
Law
Message
Region
TutorialLesson
TutorialLessonChain
TutorialLessonStep
AccoladeCategory
AccoladeIcon
AccoladeName
AccoladeParameter
AccoladeType
ActivityGroupType
ActivityIntent
ActivityLocale
ActivityOption
ActivityOptionCategory
ActivityPhase
ActivityPulseAction
ActivityState
ActivityType
AiWarStance
AgentType
Amenity
AmenitySetting
ArtifactBlueprint
ArtifactFeature
ArtifactFeatureGroup
ArtifactHistory
ArtifactRarity
ArtifactSlot
ArtifactSlotType
ArtifactTemplate
ArtifactType
ArtifactVisual
Bookmark
BookmarkGroup
BookmarkPortrait
BuildingFlag
BuildingGfx
CasusBelli
CasusBelliGroup
Catalyst
ChallengeCharacter
Character
CharacterBackground
CharacterInteractionCategory
Climate
ClothingGfx
CoaGfx
CoaDynamicDefinition
CombatEffect
CombatPhaseEvent
CouncilPosition
CouncilTask
Countermeasure
CountermeasureParameter
CourtPosition
CourtPositionTask
CourtSceneCulture
CourtSceneGroup
CourtSceneRole
CourtSceneSetting
CourtType
CourtierGuestManagement
CultureAesthetic
CultureCreationName
CultureEra
CultureEthos
CultureHeritage
CultureHistory
CultureParameter
CulturePillar
CultureTradition
CultureTraditionCategory
DangerType
DecisionGroup
DiarchyMandate
DiarchyParameter
DiarchyType
Doctrine
DoctrineCategory
DoctrineParameter
DomicileBuilding
DomicileParameter
DomicileType
Dynasty
DynastyLegacy
DynastyPerk
EpidemicType
EpidemicDeathReason
EventBackground
EventEffect2d
EventTransition
Faction
Faith
FaithIcon
FervorModifier
Flavorization
Focus
GeneticConstraint
GovernmentFlag
GraphicalFaith
GuestInviteRule
GuestSubset
GuestSystem
HoldingFlag
HoldingType
HolySite
HolySiteFlag
Hook
House
HousePowerBonus
HouseUnity
HouseUnityParameter
HouseUnityStage
ImportantAction
Innovation
InnovationFlag
Inspiration
Language
LawFlag
LeaseContract
LegendChapter
LegendChronicle
LegendProperty
LegendSeed
LegendType
LegitimacyFlag
LegitimacyType
Lifestyle
MartialCustom
MemoryCategory
MemoryType
MenAtArms
MenAtArmsBase
MessageFilterType
MessageGroupType
ModifierFormat
MottoInsert
Motto
NameEquivalency
NameList
Nickname
OpinionModifier
Perk
PerkTree
PlayableDifficultyInfo
PointOfInterest
PoolSelector
PortraitType
PrisonType
ProvinceMapping
Relation
RelationFlag
ReligionFamily
RewardItem
Scheme
SchemePulseAction
ScriptedAnimation
ScriptedCost
ScriptedIllustration
Secret
Sexuality
Skill
SpecialBuilding
SpecialGuest
Story
Struggle
StruggleHistory
StrugglePhase
StrugglePhaseParameter
SuccessionAppointment
SuccessionElection
Suggestion
TaskContractGroup
TaskContractReward
TaskContractType
TaxSlotFlag
TaxSlotObligation
TaxSlotType
Title
TitleHistory
TitleHistoryType
Trait
TraitCategory
TraitFlag
TraitPortraitModifier
TraitTrack
TravelOption
UnitGfx
VassalContract
VassalContractFlag
VassalObligationLevel
VassalStance
Implementations§
Source§impl Item
impl Item
Sourcepub fn path(self) -> &'static str
pub fn path(self) -> &'static str
Returns a path where items of this type are kept in the script files. Can be "" for items
that are built in.
These paths are used both for the user in error reports, and to find the items when loading them.
Sourcepub fn confidence(self) -> Confidence
pub fn confidence(self) -> Confidence
Confidence value to use when reporting that an item is missing.
Should be Strong for most, Weak for items that aren’t defined anywhere but just used (such as gfx flags).
Sourcepub fn severity(self) -> Severity
pub fn severity(self) -> Severity
Severity value to use when reporting that an item is missing.
Error- most thingsWarning- things that only impact visuals or presentationUntidy- things that don’t matter much at allFatal- things that cause crashes if they’re missing
This is only one piece of the severity puzzle. It can also depend on the caller who’s expecting the item to exist. That part isn’t handled yet.
Trait Implementations§
Source§impl Display for Item
Display items in separated word case for maximum friendliness.
impl Display for Item
Display items in separated word case for maximum friendliness.
Unfortunately there’s no option for this in strum so we have to roll our own
by using snake_case and changing the _ to a space.
Source§impl Ord for Item
impl Ord for Item
Source§impl PartialOrd for Item
impl PartialOrd for Item
impl Copy for Item
impl Eq for Item
impl StructuralPartialEq for Item
Auto Trait Implementations§
impl Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnwindSafe for Item
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for T
impl<T> Downcast for T
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.