Table of Contents

Class Faction

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Represents a character's standing or reputation with a specific faction. Holds the current value and reference to the faction template.

public class Faction
Inheritance
Faction
Inherited Members

Constructors

Faction(int, int)

Constructs a new Faction instance from a template ID and initial value. Looks up the template and clamps the value to valid bounds.

public Faction(int templateID, int value)

Parameters

templateID int

The template ID for the faction.

value int

Initial reputation or standing value.

Fields

Value

The current reputation or standing value for this faction. Clamped between FactionTemplate.Minimum and FactionTemplate.Maximum.

public int Value

Field Value

int

Version

Version number for this faction instance, used for client synchronization and updates. Incremented whenever the faction's state changes in a way that requires client updates ( e.g., value changes that affect the faction's standing). Not incremented for changes that do not affect client state (e.g., internal tracking of reputation changes that doesn't meet the next update threshold).

public long Version

Field Value

long

Properties

Template

The template defining this faction's properties and relationships.

public FactionTemplate Template { get; }

Property Value

FactionTemplate