Origin

From Intrigues Wiki
Revision as of 06:48, 22 December 2023 by Tayfunwiki (talk | contribs) (Created page with "== <code>Origin</code> Property in Actor Class == === Overview === The <code>Origin</code> property in the <code>Actor</code> class is used to identify the original family of the actor. This property plays a key role in defining the actor's familial roots and background within the game. === Syntax === <syntaxhighlight lang="c#"> public Family Origin => _origin; </syntaxhighlight> === Description === * Property Type: <code>Family</code>. The <code>Origin</code> proper...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Origin Property in Actor Class

Overview

The Origin property in the Actor class is used to identify the original family of the actor. This property plays a key role in defining the actor's familial roots and background within the game.

Syntax

public Family Origin => _origin;

Description

  • Property Type: Family. The Origin property is of the type Family, which is expected to be a custom class encapsulating the details and attributes of a family in the game.
  • Purpose: The Origin property is crucial for establishing the actor's initial or birth family, which can have implications for their identity, storylines, and interactions in the game. It is particularly relevant in games where lineage, heritage, or family legacies play a significant role in the narrative and gameplay.

Usage

This property is utilized to access the actor's original family, providing a means to understand and interact with the character's background, especially in contexts related to family lineage and history.

Example:

Family actorFamily = someActor.Origin;
if (actorFamily.FamilyName == "Arcanum") {
    // Execute specific logic for actors from the "Arcanum" family
}

In this example, the actor's origin family is checked for a specific family name, "Arcanum." If the actor belongs to the "Arcanum" family, corresponding game logic is executed.

Remarks

  • The Origin property ensures that the actor's initial family background is preserved and can be referenced throughout the game, which is vital for maintaining narrative consistency.
  • This property is essential in games where the character's original family background influences their storyline, decisions, and relationships within the game world.