91 void Tick(
float delta_time)
167 string name = ClassName();
168 int indexStart =
name.Length() - 4;
169 int indexEnd =
name.Length();
171 name =
name.SubstringInverted(
name, indexStart, indexEnd);
236 private void OnTick(PlayerBase player,
float deltaT);
244 m_Player.StatRegister(
string.Format(
"%1_%2", modifierIdName, keySuffix));
253 string formatttedKey =
string.Format(
"%1_state", modifierStatKey);
256 if(
m_Player.StatGet(formatttedKey) == 0.0)
262 if(
m_Player.StatGet(formatttedKey) == 1.0)
266 m_Player.StatUpdate(formatttedKey, value);
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
bool m_TrackActivatedTime
overall time this modifier was active
void DisableDeactivateCheck()
void SetAttachedTime(float time)
ModifiersManager m_Manager
float m_AccumulatedTimeInactive
void InitBase(PlayerBase player, ModifiersManager manager)
float m_AccumulatedTimeActive
bool IsTrackAttachedTime()
void DisableActivateCheck()
void AnalyticsRegisterStat(int modifierId, string keySuffix)
bool DeactivateCondition(PlayerBase player)
bool m_AnalyticsStatsEnabled
float m_LastTickedInactive
eModifierSyncIDs m_SyncID
float m_TickIntervalActive
float m_TickIntervalInactive
void ActivateRequest(EActivationType trigger)
EActivationType m_ActivationType
string m_System
the manager instance
void OnDeactivate(PlayerBase player)
void Deactivate(bool trigger=true)
void OnStoreSave(ParamsWriteContext ctx)
void MakeParamObjectPersistent(Param object)
void AnalyticsSetState(int modifierId, float value)
special treating of the value to set state only (without counter use)
bool m_IsPersistent
should this modifier track overall time it was active ?
PluginPlayerStatus m_ModulePlayerStatus
max 32 synced modifiers supported, 0 == no sync
void ModifiersManager(PlayerBase player)
PluginBase GetPlugin(typename plugin_type)
Super root of all classes in Enforce script.
override void OnReconnect(PlayerBase player)
override bool DeactivateCondition(PlayerBase player)
override string GetDebugText()
override string GetDebugTextSimple()
override bool ActivateCondition(PlayerBase player)
override void OnTick(PlayerBase player, float deltaT)
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Serializer ParamsWriteContext
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
proto int ToLower()
Changes string to lowercase. Returns length.