Class GameSettingsAsset
- Namespace
- SurvivorsMaker.Data
- Assembly
- SurvivorsMaker.Data.dll
Every tunable rule number in one Inspector asset: shop prices and odds, level-up choices, simulation, defense and level curve. New assets start with the package defaults.
[CreateAssetMenu(menuName = "Survivor Roguelite Maker/Game Settings", fileName = "GameSettings", order = 1)]
public sealed class GameSettingsAsset : ScriptableObject
- Inheritance
-
ObjectScriptableObjectGameSettingsAsset
- 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
GameSettingsAsset()
public GameSettingsAsset()
Fields
Guarantees
Author fixed guarantees with assets, not embedded runtime definition objects.
[Tooltip("Asset-based offer guarantees, used as the run pool guarantee list in authored order.")]
public List<OfferGuaranteeEntry> Guarantees
Field Value
Properties
Defense
The serialized defense formula used by the simulation settings.
public HyperbolicDefense Defense { get; }
Property Value
LevelCurve
The serialized experience curve used by the simulation settings.
public PolynomialLevelCurve LevelCurve { get; }
Property Value
Run
Retains the existing live settings object; fixed asset references use the content cache revision.
public RunSettings Run { get; }
Property Value
Simulation
Simulation settings with this asset's defense formula and level curve plugged in.
public SimSettings Simulation { get; }
Property Value
Methods
InvalidateCache()
Invalidates converted guarantees and content definitions after programmatic edits.
public void InvalidateCache()
ToRunSettings()
Returns the live run settings with asset-based guarantees resolved for the current cache revision.
public RunSettings ToRunSettings()
Returns
Validate()
Returns authoring problems without repairing or changing serialized fields; an empty list means valid.
public List<string> Validate()