Return Family Node

From Intrigues Wiki
Revision as of 08:00, 5 August 2024 by Tayfunwiki (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return Family

Description

By creating a method in the specified format, you can reference any Family of your choice. For example, if you want to reference the Family of a Conspirator's spouse, the Return Family Node will accomplish this for you.
[GetFamily("Get Spouse's Family")]
private Family FindConspiratorFamily(Scheme scheme) {
    return scheme.Schemer.Conspirator.Family;
}

» The method must return a value of the Family type. » The method should be marked using the [GetFamily] attribute. (Using this attribute, you can give a specific name to the method.)

Outputs

» [Family]: Transfers the referenced family to the next node. » [Null]: If the method returns a null value, the flow continues from here.