Table of Contents

Class NPCAttributeDatabase

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

ScriptableObject database for storing and retrieving NPC attributes by name.

[CreateAssetMenu(fileName = "New NPC Attribute Database", menuName = "FishMMO/Character/NPC/Attribute/Database", order = 0)]
public class NPCAttributeDatabase : ScriptableObject
Inheritance
Object
ScriptableObject
NPCAttributeDatabase
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

Attributes

List of all NPC attributes in the database.

public List<NPCAttribute> Attributes

Field Value

List<NPCAttribute>

Methods

TryGetNPCAttribute(string, out NPCAttribute)

Attempts to find an NPC attribute by its template name.

public bool TryGetNPCAttribute(string name, out NPCAttribute npcAttribute)

Parameters

name string

The name of the attribute template to search for.

npcAttribute NPCAttribute

The found NPCAttribute, or null if not found.

Returns

bool

True if the attribute is found, false otherwise.