MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / CreateObject

Method CreateObject

engine/Poseidon/World/Detection/Detector.cpp:365–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363}
364
365Detector* Detector::CreateObject(NetworkMessageContext& ctx)
366{
367 base* veh = base::CreateObject(ctx);
368 Detector* det = dyn_cast<Detector>(veh);
369 if (!det)
370 {
371 return nullptr;
372 }
373 sensorsMap.Add(det);
374 det->TransferMsg(ctx);
375 return det;
376}
377
378void Detector::DestroyObject()
379{

Callers

nothing calls this directly

Calls 2

AddMethod · 0.45
TransferMsgMethod · 0.45

Tested by

no test coverage detected