Class BaseCheckConfigurator<T, TBuilder>
Implements common fields and components for blueprints inheriting from Kingmaker.DialogSystem.Blueprints.BlueprintCheck.
Inheritance
Inherited Members
Namespace: BlueprintCore.Blueprints.Configurators.DialogSystem
Assembly: BlueprintCore.dll
Syntax
public abstract class BaseCheckConfigurator<T, TBuilder> : BaseCueBaseConfigurator<T, TBuilder> where T : BlueprintCheck where TBuilder : BaseCheckConfigurator<T, TBuilder>
Type Parameters
Name | Description |
---|---|
T | |
TBuilder |
Remarks
Each supported blueprint type has a corresponding Configurator
class to create and modify blueprints of
that type, e.g. FeatureConfigurator supports BlueprintFeature
. Configurators exist for all
blueprint types inheriting from Kingmaker.Blueprints.BlueprintScriptableObject, excluding any that are not used in the
base game.
Creating a Blueprint
Use New(string, string)
to create a blueprint:
FeatureConfigurator.New(MyBlueprintName, MyBlueprintGuid)
Once New()
is called the blueprint is added to the game library and can be referenced.
Using the Configurator
New()
returns a configurator with methods to set or modify blueprint fields and add or modify
Kingmaker.Blueprints.BlueprintComponent:
FeatureConfigurator.New(MyBlueprintName, MyBlueprintGuid).AddToGroups(FeatureGroup.Feat).AddPrerequisiteAlignment(AlignmentMaskType.LawfulGood).Configure();
Each method call returns the configurator allowing you to chain calls. Nothing is modified on the blueprint until
Configure()
is called, at which point the changes are applied and validated. Potential problems with the
blueprint are logged as warnings.
Modifying an Existing Blueprint
Use For(Blueprint)
to modify existing blueprints:
CharacterClassConfigurator.For(WizardClassGuid)
Usage is otherwise identical to creating a new blueprint.
For more information see Using BlueprintCore.
Constructors
| Improve this Doc View SourceBaseCheckConfigurator(Blueprint<BlueprintReference<T>>)
Declaration
protected BaseCheckConfigurator(Blueprint<BlueprintReference<T>> blueprint)
Parameters
Type | Name | Description |
---|---|---|
Blueprint<Kingmaker.Blueprints.BlueprintReference<T>> | blueprint |
Methods
| Improve this Doc View SourceAddToDCModifiers(DCModifier[])
Adds to the contents of Kingmaker.DialogSystem.Blueprints.BlueprintCheck.DCModifiers
Declaration
public TBuilder AddToDCModifiers(params DCModifier[] dCModifiers)
Parameters
Type | Name | Description |
---|---|---|
Kingmaker.DialogSystem.Blueprints.DCModifier[] | dCModifiers |
Returns
Type | Description |
---|---|
TBuilder |
ClearDCModifiers()
Removes all elements from Kingmaker.DialogSystem.Blueprints.BlueprintCheck.DCModifiers
Declaration
public TBuilder ClearDCModifiers()
Returns
Type | Description |
---|---|
TBuilder |
CopyFrom(Blueprint<BlueprintReference<BlueprintCheck>>, Predicate<BlueprintComponent>)
Copies fields and components of the specified types from the blueprint.
Declaration
public TBuilder CopyFrom(Blueprint<BlueprintReference<BlueprintCheck>> blueprint, Predicate<BlueprintComponent> componentMatcher)
Parameters
Type | Name | Description |
---|---|---|
Blueprint<Kingmaker.Blueprints.BlueprintReference<Kingmaker.DialogSystem.Blueprints.BlueprintCheck>> | blueprint | |
System.Predicate<Kingmaker.Blueprints.BlueprintComponent> | componentMatcher | Any components in |
Returns
Type | Description |
---|---|
TBuilder |
Remarks
NOT A DEEP COPY. This means objects copied are shared between blueprints. Changes to copied objects affect both blueprints.
Recommended when you need to create a nearly identical ability but change some parts such as a
ContextRankConfig
.
// Copy the Undead Bloodline's Incorporeal Form ability, replacing the duration w/ Character Level rounds
AbilityConfigurator.New(NewIncorporealForm, Guids.NewIncorporealForm)
.CopyFrom(
AbilityRefs.BloodlineUndeadIncorporealFormAbility,
typeof(AbilityEffectRunAction),
typeof(AbilityResourceLogic),
typeof(SpellComponent))
.AddContextRankConfig(ContextRankConfigs.CharacterLevel())
.Configure();
CopyFrom(Blueprint<BlueprintReference<BlueprintCheck>>, Type[])
Copies fields and components of the specified types from the blueprint.
Declaration
public TBuilder CopyFrom(Blueprint<BlueprintReference<BlueprintCheck>> blueprint, params Type[] componentTypes)
Parameters
Type | Name | Description |
---|---|---|
Blueprint<Kingmaker.Blueprints.BlueprintReference<Kingmaker.DialogSystem.Blueprints.BlueprintCheck>> | blueprint | |
System.Type[] | componentTypes | Any components in |
Returns
Type | Description |
---|---|
TBuilder |
Remarks
NOT A DEEP COPY. This means objects copied are shared between blueprints. Changes to copied objects affect both blueprints.
Recommended when you need to create a nearly identical ability but change some parts such as a
ContextRankConfig
.
// Copy the Undead Bloodline's Incorporeal Form ability, replacing the duration w/ Character Level rounds
AbilityConfigurator.New(NewIncorporealForm, Guids.NewIncorporealForm)
.CopyFrom(
AbilityRefs.BloodlineUndeadIncorporealFormAbility,
typeof(AbilityEffectRunAction),
typeof(AbilityResourceLogic),
typeof(SpellComponent))
.AddContextRankConfig(ContextRankConfigs.CharacterLevel())
.Configure();
ModifyDCModifiers(Action<DCModifier>)
Modifies Kingmaker.DialogSystem.Blueprints.BlueprintCheck.DCModifiers by invoking the provided action on each element.
Declaration
public TBuilder ModifyDCModifiers(Action<DCModifier> action)
Parameters
Type | Name | Description |
---|---|---|
System.Action<Kingmaker.DialogSystem.Blueprints.DCModifier> | action |
Returns
Type | Description |
---|---|
TBuilder |
ModifyFail(Action<BlueprintCueBaseReference>)
Modifies Kingmaker.DialogSystem.Blueprints.BlueprintCheck.m_Fail by invoking the provided action.
Declaration
public TBuilder ModifyFail(Action<BlueprintCueBaseReference> action)
Parameters
Type | Name | Description |
---|---|---|
System.Action<Kingmaker.Blueprints.BlueprintCueBaseReference> | action |
Returns
Type | Description |
---|---|
TBuilder |
ModifySuccess(Action<BlueprintCueBaseReference>)
Modifies Kingmaker.DialogSystem.Blueprints.BlueprintCheck.m_Success by invoking the provided action.
Declaration
public TBuilder ModifySuccess(Action<BlueprintCueBaseReference> action)
Parameters
Type | Name | Description |
---|---|---|
System.Action<Kingmaker.Blueprints.BlueprintCueBaseReference> | action |
Returns
Type | Description |
---|---|
TBuilder |
ModifyUnitEvaluator(Action<UnitEvaluator>)
Modifies Kingmaker.DialogSystem.Blueprints.BlueprintCheck.m_UnitEvaluator by invoking the provided action.
Declaration
public TBuilder ModifyUnitEvaluator(Action<UnitEvaluator> action)
Parameters
Type | Name | Description |
---|---|---|
System.Action<Kingmaker.ElementsSystem.UnitEvaluator> | action |
Returns
Type | Description |
---|---|
TBuilder |
OnConfigureCompleted()
Declaration
protected override void OnConfigureCompleted()
Overrides
RemoveFromDCModifiers(DCModifier[])
Removes elements from Kingmaker.DialogSystem.Blueprints.BlueprintCheck.DCModifiers
Declaration
public TBuilder RemoveFromDCModifiers(params DCModifier[] dCModifiers)
Parameters
Type | Name | Description |
---|---|---|
Kingmaker.DialogSystem.Blueprints.DCModifier[] | dCModifiers |
Returns
Type | Description |
---|---|
TBuilder |
RemoveFromDCModifiers(Func<DCModifier, Boolean>)
Removes elements from Kingmaker.DialogSystem.Blueprints.BlueprintCheck.DCModifiers that match the provided predicate.
Declaration
public TBuilder RemoveFromDCModifiers(Func<DCModifier, bool> predicate)
Parameters
Type | Name | Description |
---|---|---|
System.Func<Kingmaker.DialogSystem.Blueprints.DCModifier, System.Boolean> | predicate |
Returns
Type | Description |
---|---|
TBuilder |
SetBanPartyCheckInCamp(Boolean)
Sets the value of Kingmaker.DialogSystem.Blueprints.BlueprintCheck.BanPartyCheckInCamp
Declaration
public TBuilder SetBanPartyCheckInCamp(bool banPartyCheckInCamp = true)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | banPartyCheckInCamp |
Returns
Type | Description |
---|---|
TBuilder |
SetDC(Int32)
Sets the value of Kingmaker.DialogSystem.Blueprints.BlueprintCheck.DC
Declaration
public TBuilder SetDC(int dC)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | dC |
Returns
Type | Description |
---|---|
TBuilder |
SetDCModifiers(DCModifier[])
Sets the value of Kingmaker.DialogSystem.Blueprints.BlueprintCheck.DCModifiers
Declaration
public TBuilder SetDCModifiers(params DCModifier[] dCModifiers)
Parameters
Type | Name | Description |
---|---|---|
Kingmaker.DialogSystem.Blueprints.DCModifier[] | dCModifiers |
Returns
Type | Description |
---|---|
TBuilder |
SetExperience(DialogExperience)
Sets the value of Kingmaker.DialogSystem.Blueprints.BlueprintCheck.Experience
Declaration
public TBuilder SetExperience(DialogExperience experience)
Parameters
Type | Name | Description |
---|---|---|
Kingmaker.DialogSystem.DialogExperience | experience |
Returns
Type | Description |
---|---|
TBuilder |
SetFail(Blueprint<BlueprintCueBaseReference>)
Sets the value of Kingmaker.DialogSystem.Blueprints.BlueprintCheck.m_Fail
Declaration
public TBuilder SetFail(Blueprint<BlueprintCueBaseReference> fail)
Parameters
Type | Name | Description |
---|---|---|
Blueprint<Kingmaker.Blueprints.BlueprintCueBaseReference> | fail | Blueprint of type BlueprintCueBase. You can pass in the blueprint using:
|
Returns
Type | Description |
---|---|
TBuilder |
SetHidden(Boolean)
Sets the value of Kingmaker.DialogSystem.Blueprints.BlueprintCheck.Hidden
Declaration
public TBuilder SetHidden(bool hidden = true)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | hidden |
Returns
Type | Description |
---|---|
TBuilder |
SetSuccess(Blueprint<BlueprintCueBaseReference>)
Sets the value of Kingmaker.DialogSystem.Blueprints.BlueprintCheck.m_Success
Declaration
public TBuilder SetSuccess(Blueprint<BlueprintCueBaseReference> success)
Parameters
Type | Name | Description |
---|---|---|
Blueprint<Kingmaker.Blueprints.BlueprintCueBaseReference> | success | Blueprint of type BlueprintCueBase. You can pass in the blueprint using:
|
Returns
Type | Description |
---|---|
TBuilder |
SetType(StatType)
Sets the value of Kingmaker.DialogSystem.Blueprints.BlueprintCheck.Type
Declaration
public TBuilder SetType(StatType type)
Parameters
Type | Name | Description |
---|---|---|
Kingmaker.EntitySystem.Stats.StatType | type |
Returns
Type | Description |
---|---|
TBuilder |
SetUnitEvaluator(UnitEvaluator)
Sets the value of Kingmaker.DialogSystem.Blueprints.BlueprintCheck.m_UnitEvaluator
Declaration
public TBuilder SetUnitEvaluator(UnitEvaluator unitEvaluator)
Parameters
Type | Name | Description |
---|---|---|
Kingmaker.ElementsSystem.UnitEvaluator | unitEvaluator |
Returns
Type | Description |
---|---|
TBuilder |