Class NPCGuildTemplate
ScriptableObject template for defining NPC guilds, their icon, description, archetypes, and requirements.
[CreateAssetMenu(fileName = "New NPC Guild", menuName = "FishMMO/Character/NPC/NPC Guild", order = 1)]
public class NPCGuildTemplate : CachedScriptableObject<NPCGuildTemplate>, ICachedObject
- Inheritance
-
ObjectScriptableObjectNPCGuildTemplate
- 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
Archetypes
List of archetypes associated with this guild.
public List<ArchetypeTemplate> Archetypes
Field Value
Description
Description of the guild and its purpose.
public string Description
Field Value
GuildRequirements
Requirements that a player must meet to join or interact with this guild.
public BaseCondition GuildRequirements
Field Value
IconReference
Addressable reference to the icon sprite for this guild.
public AssetReferenceSprite IconReference
Field Value
- AssetReferenceSprite
Properties
Icon
The icon for this guild (loaded at runtime on client).
public Sprite Icon { get; }
Property Value
- Sprite
Name
The name of the guild, derived from the asset name.
public string Name { get; }
Property Value
Methods
MeetsRequirements(IPlayerCharacter)
Returns true if requirements are met or if no requirements are set.
public bool MeetsRequirements(IPlayerCharacter playerCharacter)
Parameters
playerCharacterIPlayerCharacterThe player character to evaluate.
Returns
- bool
True if requirements are met, false otherwise.
OnLoad(string, string, int)
Called when the NPC guild 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 NPC guild template is unloaded from cache. Releases the icon on the client.
public override void OnUnload(string typeName, string resourceName, int resourceID)