Table of Contents

Class GatheringNodeTemplate

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Template defining a gathering node's loot table and interaction parameters. Each gathering interaction rolls the drop table and grants items to the player.

[CreateAssetMenu(fileName = "New Gathering Node", menuName = "FishMMO/Interactable/Gathering Node", order = 1)]
public class GatheringNodeTemplate : CachedScriptableObject<GatheringNodeTemplate>, ICachedObject
Inheritance
Object
ScriptableObject
GatheringNodeTemplate
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

Description

Description displayed in tooltips or UI.

[TextArea(2, 4)]
public string Description

Field Value

string

Drops

The list of possible drops when gathering from this node.

public List<GatheringDrop> Drops

Field Value

List<GatheringDrop>

GatherTimeSeconds

Time in seconds the gathering action takes. Used by the client for a progress bar. Set to 0 for instant gathering.

[Min(0)]
public float GatherTimeSeconds

Field Value

float

IconReference

Addressable reference to the icon sprite for this gathering node.

public AssetReferenceSprite IconReference

Field Value

AssetReferenceSprite

MaxUses

Number of successful gathers before the node is depleted and despawns.

[Min(1)]
public int MaxUses

Field Value

int

Properties

Icon

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

public Sprite Icon { get; }

Property Value

Sprite

Name

The display name of this gathering node template.

public string Name { get; }

Property Value

string

Methods

OnLoad(string, string, int)

Called when the gathering node 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 gathering node 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