Class FactionTemplate
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
-
ObjectScriptableObjectFactionTemplate
- 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.nameObject.hideFlags
Fields
DefaultAllied
Set of factions that are considered allied by default.
public FactionTemplate.FactionHashSet DefaultAllied
Field Value
DefaultHostile
Set of factions that are considered hostile by default.
public FactionTemplate.FactionHashSet DefaultHostile
Field Value
DefaultNeutral
Set of factions that are considered neutral by default.
public FactionTemplate.FactionHashSet DefaultNeutral
Field Value
Description
Description of the faction, used for tooltips and UI.
public string Description
Field Value
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
Minimum
The minimum possible value for faction reputation or standing.
public const int Minimum = -10000
Field Value
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
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
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)