Class SetAsset

Namespace
SurvivorsMaker.Data
Assembly
SurvivorsMaker.Data.dll

Inspector-authored set data converted to a cached runtime definition.

[CreateAssetMenu(menuName = "Survivor Roguelite Maker/Content/Set", fileName = "Set")]
public sealed class SetAsset : ContentDefinitionAsset<SetDef>, IContentTextSource
Inheritance
Object
ScriptableObject
SetAsset
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.ToString()
Object.name
Object.hideFlags

Constructors

SetAsset()

public SetAsset()

Fields

Bonuses

Owned-count thresholds and their effects. Only the highest reached threshold is active.

[Tooltip("Owned-count thresholds and their effects. Only the highest reached threshold is active.")]
public List<SetBonusEntry> Bonuses

Field Value

List<SetBonusEntry>

Description

Plain text description shown with the name; empty = no description.

[Tooltip("Plain description shown with the name.")]
[TextArea(2, 5)]
public string Description

Field Value

string

DisplayName

Display label; empty uses a name derived from the content id.

[Tooltip("Name shown in menus, cards, alerts and records. Empty = derived from the Id.")]
public string DisplayName

Field Value

string

Id

Stable, nonempty content id. Keep unique within its content kind and unchanged for saved runs.

[Tooltip("Stable, nonempty content id. Keep unique within its content kind and unchanged for saved runs.")]
public string Id

Field Value

string

Order

Ascending set evaluation order; ties keep the first encountered definition.

[Tooltip("Ascending set evaluation order; ties keep the first encountered definition.")]
public int Order

Field Value

int

TextKey

Optional localization key base; empty uses the content kind and id.

[Tooltip("Optional localization key base: \"<key>.name\" and \"<key>.description\". Empty = \"set.<Id>\".")]
public string TextKey

Field Value

string

Methods

Populate(SetDef)

Fills the already-cached definition shell; resolve asset references through their conversion caches.

protected override void Populate(SetDef def)

Parameters

def SetDef

ToSetDef()

Returns the cached runtime definition for this asset revision; repeated references preserve object identity.

public SetDef ToSetDef()

Returns

SetDef

Validate()

Returns authoring problems without repairing or changing serialized fields; an empty list means valid.

public override List<string> Validate()

Returns

List<string>