76 void OnActivate(
string code,
bool loadedAsActive =
false)
122class BunkerBroadcastComponentDebugData :
Param
151 #ifdef DIAG_DEVELOPER
152 protected ref array<Shape> m_DebugShapes =
new array<Shape>();
153 protected ref array<ref DebugTextWorldSpace> m_DebugTextsWS;
158 #ifdef DIAG_DEVELOPER
167 super.OnUpdate(deltaTime);
169 #ifdef DIAG_DEVELOPER
172 BunkerBroadcastComponentDebugData data = null;
174 data = GetDebugData();
186 #ifdef DIAG_DEVELOPER
187 case ERPCs.DIAG_MISC_RADIOGAMEPLAY_DEBUG_DATA:
188 BunkerBroadcastComponentDebugData data =
new BunkerBroadcastComponentDebugData();
206 #ifdef DIAG_DEVELOPER
207 BunkerBroadcastComponentDebugData GetDebugData()
209 BunkerBroadcastComponentDebugData data =
new BunkerBroadcastComponentDebugData();
217 void ShowDebugInfo(
bool enabled, BunkerBroadcastComponentDebugData data)
225 void UpdateDebugDraws(
bool enabled, BunkerBroadcastComponentDebugData data)
229 DrawActivityDebugMarker(enabled, data);
234 private void DrawActivityDebugMarker(
bool enabled, BunkerBroadcastComponentDebugData data)
251 private void DrawDebugText(
bool enabled, BunkerBroadcastComponentDebugData data)
256 string lockCode =
"unset";
257 int color = 0xffff0000;
260 lockCode = data.m_LockCode;
264 text +=
string.
Format(
"Bunker\n");
265 text +=
string.
Format(
"Code: %1\n", lockCode);
267 BunkerBroadcastProxy proxy = BunkerBroadcastProxy.Cast(
m_Parent);
271 vector
position = bunker.GetSelectionBasePositionLS(
"att_codelock");
BunkerBroadcastComponentBase Managed BunkerBroadcastComponent(notnull EntityAI parent)
void BunkerBroadcastComponentBase(notnull EntityAI parent)
static proto native void DrawDebugText(string text, vector pos, float size)
class BoxCollidingParams component
ComponentInfo for BoxCollidingResult.
void Synch(EntityAI victim)
keeping "step" here for consistency only
void SetActive(bool state)
void BunkerBroadcastComponentBase(notnull EntityAI parent)
ScriptInvoker GetOnDeactivated()
void OnUpdate(float deltaTime)
ScriptInvoker GetOnActivated()
ref ScriptInvoker m_OnDeactivated
BunkerBroadcastHandler m_Handler
void OnActivate(string code, bool loadedAsActive=false)
ref ScriptInvoker m_OnActivated
static BunkerBroadcastHandler GetInstance()
static void CleanupTextsWS(array< ref DebugTextWorldSpace > texts)
static void CleanupDrawShapes(array< Shape > shapes)
void OnRPC(ParamsReadContext ctx)
bool Deserializer(Serializer ctx)
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
The class that will be instanced (moddable)
ScriptInvoker Class provide list of callbacks usage:
proto bool Write(void value_out)
proto bool Read(void value_in)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
Serializer ParamsReadContext
static proto string Format(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
Gets n-th character from string.