Skip to main content

LifetimeOperation

A class in Root.Township, Alta.Intelligence.

Prefab scoring component that adds a Lifetime rule.

Constructors​

MemberWhat it is
LifetimeOperation()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

3 private and internal fields
MemberWhat it is
private float maximumAge in seconds that maps to 1.
private float minimumAge in seconds that maps to 0.
private float multiplierWeight of the rule. Only matters for preferred rules.

Methods​

MemberWhat it is
override TargetOperation GetOperation()Makes the Lifetime rule, weighted by multiplier.
protected override string GetName()Builds the GameObject name, like Lifetime 0 -> 10 (x1).