SchemeName

From Intrigues Wiki

SchemeName Property in Scheme Class

Overview

The SchemeName property in the Scheme class provides the name of a scheme, such as "Assassination."

Property Definition

[field: SerializeField]
public string SchemeName { get; private set; }

Description

  • Type: string
  • Accessibility: The property is publicly accessible for reading but can only be set privately within the class.

Functionality

  • SchemeName serves as a readable identifier for schemes, facilitating easy referencing and management in gameplay.
  • It is essential for distinguishing between different types of schemes in strategic and narrative-based game mechanics.

Usage

This property is used to identify schemes by name, which is crucial in scenarios involving strategic decision-making, character interactions, and narrative progression.

Example of Usage

public class SchemeInteractionManager : MonoBehaviour {
    void Start() {
        // Iterate through all active schemes of the player and log their names
        foreach (Scheme scheme in IM.Player.Schemes) {
            Debug.Log($"Scheme name: {scheme.SchemeName}");
        }
    }
}

Description

  • In the Start method of the SchemeInteractionManager class, the example demonstrates iterating through all active schemes associated with the player and logging each scheme's name.

Remarks

  • The SchemeName property is a key component in games with multiple interactive schemes, providing clarity and organization in handling different scheme types.
  • Proper use of this property is essential in strategy games, role-playing games, or any genre where complex schemes and player choices significantly influence the gameplay.