Table of Contents

Class StructureKitTemplate

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

A housing structure in carried form: what comes out of the house vault.

[CreateAssetMenu(fileName = "New Structure Kit", menuName = "FishMMO/Item/Structure Kit", order = 1)]
public class StructureKitTemplate : BaseItemTemplate, ICachedObject, ITooltip
Inheritance
Object
ScriptableObject
StructureKitTemplate
Implements
Inherited Members
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance<T>()
Object.GetEntityId()
Object.MemberwiseClone()
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
Extension Methods

Remarks

A structure standing on a plot is a database row, not an item, so it cannot sit in a bag. When land is lost or given up its structures go to the owner's vault; buying them back out of the vault turns each into this item, delivered to the bank (the vault is opened from the bank). Nothing turns an item back into a vault entry: the vault only empties.

The building tool is what places a kit back onto a plot. Until it exists a kit is something to keep, sell, or trade.

Fields

Description

[TextArea(1, 3)]
public string Description

Field Value

string

Structure

[Tooltip("The structure this kit builds.")]
public PlotStructureTemplate Structure

Field Value

PlotStructureTemplate

Methods

BuildTooltip(TooltipContent, bool)

Describes the item, either as a kind of thing or as one the player is holding.

public override void BuildTooltip(TooltipContent content, bool describingInstance)

Parameters

content TooltipContent

The content being assembled.

describingInstance bool

True when an instance's own rolled values follow.

Remarks

The distinction matters for anything that rolls. A template can only say what an item of this kind CAN be — "Attack Power 1 - 3" — while an instance knows what it rolled, and ItemGenerator writes that. Printing both put the range and the roll in the same tooltip under two different names, which reads as two separate bonuses.