Skip to main content

LogicFloatChangeOnBoolSaveData2

A class in Root.Township, Alta.Logic.

Old save format (version 2) for LogicFloatChangeOnBool. Only read from old saves and migrated to LogicFloatChangeOnBoolSaveData.

Constructors​

MemberWhat it is
LogicFloatChangeOnBoolSaveData2()Creates a LogicFloatChangeOnBoolSaveData2 with default values.

Fields​

MemberWhat it is
float currentValueThe float value at save time. Not carried over by Migrate.
LogicSaveData logicDataThe logic link data (identifier and listeners) for this sender.
float moveSpeedPerSecHow fast the value moved towards its target, per second.
bool oneWayIf true, the value only moved one way and did not go back when the bool turned off.
float targetValueThe value it was moving towards at save time. Not carried over by Migrate.
float timeBeforeMovingDelay in seconds before the value started moving after the bool changed.

Methods​

MemberWhat it is
override SaveData Migrate()Converts to the current LogicFloatChangeOnBoolSaveData. currentValue and targetValue are dropped, so progress resets.