48 AnalyticsRegisterStat(
m_ID,
"state");
76 string GetDebugTextSimple()
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)
242 modifierIdName.ToLower();
244 m_Player.StatRegister(
string.Format(
"%1_%2", modifierIdName, keySuffix));
248 private void AnalyticsSetState(
int modifierId,
float value)
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...
Serialization general interface. Serializer API works with:
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()
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)
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)