Class FactionMatrix
Represents a matrix of faction relationships, where each cell defines the alliance level between two factions. Used to determine how factions interact (e.g., ally, enemy, neutral).
[Serializable]
public class FactionMatrix
- Inheritance
-
FactionMatrix
- Inherited Members
Constructors
FactionMatrix(List<FactionTemplate>)
Constructs a new FactionMatrix for the given list of factions, initializing all relationships to Neutral.
public FactionMatrix(List<FactionTemplate> factions)
Parameters
factionsList<FactionTemplate>
Fields
AllianceLevels
Flat array representing the alliance level between each pair of factions. Indexed as [x + y * count], where x and y are faction indices.
public FactionAllianceLevel[] AllianceLevels