Table of Contents

Class FactionTemplate

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

ScriptableObject template defining a faction's properties, reputation bounds, and default relationships.

[CreateAssetMenu(fileName = "New Faction", menuName = "FishMMO/Character/Faction/Faction", order = 1)]
public class FactionTemplate : CachedScriptableObject<FactionTemplate>, ICachedObject
Inheritance
Object
ScriptableObject
FactionTemplate
Implements
Inherited Members
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance<T>()
Object.GetEntityId()
Object.GetInstanceID()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Scene)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.FindObjectsByType<T>()
Object.FindObjectsByType<T>(FindObjectsInactive)
Object.ToString()
Object.name
Object.hideFlags

Fields

DefaultAllied

Set of factions that are considered allied by default.

public FactionTemplate.FactionHashSet DefaultAllied

Field Value

FactionTemplate.FactionHashSet

DefaultHostile

Set of factions that are considered hostile by default.

public FactionTemplate.FactionHashSet DefaultHostile

Field Value

FactionTemplate.FactionHashSet

DefaultNeutral

Set of factions that are considered neutral by default.

public FactionTemplate.FactionHashSet DefaultNeutral

Field Value

FactionTemplate.FactionHashSet

Description

Description of the faction, used for tooltips and UI.

public string Description

Field Value

string

IconReference

Addressable reference to the icon sprite for this faction.

public AssetReferenceSprite IconReference

Field Value

AssetReferenceSprite

Maximum

The maximum possible value for faction reputation or standing.

public const int Maximum = 10000

Field Value

int

Minimum

The minimum possible value for faction reputation or standing.

public const int Minimum = -10000

Field Value

int

Properties

Icon

The icon for this faction (loaded at runtime on client).

public Sprite Icon { get; }

Property Value

Sprite

Name

The display name of the faction (from the ScriptableObject's name).

public string Name { get; }

Property Value

string

Methods

OnLoad(string, string, int)

Called when the faction template is loaded into cache. Loads the icon on the client.

public override void OnLoad(string typeName, string resourceName, int resourceID)

Parameters

typeName string
resourceName string
resourceID int

OnUnload(string, string, int)

Called when the faction template is unloaded from cache. Releases the icon on the client.

public override void OnUnload(string typeName, string resourceName, int resourceID)

Parameters

typeName string
resourceName string
resourceID int