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
-
ObjectScriptableObjectSetAsset
- 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.nameObject.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
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
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
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
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
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
Methods
Populate(SetDef)
Fills the already-cached definition shell; resolve asset references through their conversion caches.
protected override void Populate(SetDef def)
Parameters
defSetDef
ToSetDef()
Returns the cached runtime definition for this asset revision; repeated references preserve object identity.
public SetDef ToSetDef()
Returns
Validate()
Returns authoring problems without repairing or changing serialized fields; an empty list means valid.
public override List<string> Validate()