48 AnalyticsRegisterStat(
m_ID,
"state");
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);
197 AnalyticsRegisterStat(
m_ID,
"state");
198 AnalyticsSetState(
m_ID, 1.0);
223 AnalyticsSetState(
m_ID, -1.0);
236 private void OnTick(PlayerBase player,
float deltaT);
239 private void AnalyticsRegisterStat(
int modifierId,
string keySuffix)
241 string modifierIdName = EnumTools.EnumToString(
eModifiers, modifierId);
242 modifierIdName.ToLower();
244 m_Player.StatRegister(
string.Format(
"%1_%2", modifierIdName, keySuffix));
248 private void AnalyticsSetState(
int modifierId,
float value)
250 string modifierStatKey = EnumTools.EnumToString(
eModifiers, modifierId);
251 modifierStatKey.ToLower();
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
Super root of all classes in Enforce script.
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it).
Serializer ParamsWriteContext
proto string GetName()
Suite class name getter. Strictly for UI porposes!
bool m_TrackActivatedTime
overall time this modifier was active
void DisableDeactivateCheck()
void SetAttachedTime(float time)
ModifiersManager m_Manager
bool ActivateCondition(PlayerBase player)
float m_AccumulatedTimeInactive
void InitBase(PlayerBase player, ModifiersManager manager)
float m_AccumulatedTimeActive
bool IsTrackAttachedTime()
void DisableActivateCheck()
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 OnReconnect(PlayerBase player)
is called when a modifier is being re-activated upon player server connection, use to activate system...
void Deactivate(bool trigger=true)
string GetDebugTextSimple()
void OnStoreSave(ParamsWriteContext ctx)
void MakeParamObjectPersistent(Param object)
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)