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

Method SensorUpdate

engine/Poseidon/AI/ArcadeTemplateFind.cpp:550–575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

548}
549
550void ArcadeTemplate::SensorUpdate(int ig, int index, ArcadeSensorInfo& sInfo)
551{
552 if (ig < 0)
553 {
554 if (index < 0)
555 {
556 sensors.Add(sInfo);
557 }
558 else
559 {
560 sensors[index] = sInfo;
561 }
562 }
563 else
564 {
565 ArcadeGroupInfo& gInfo = groups[ig];
566 if (index < 0)
567 {
568 index = gInfo.sensors.Add(sInfo);
569 }
570 else
571 {
572 gInfo.sensors[index] = sInfo;
573 }
574 }
575}
576
577void ArcadeTemplate::SensorDelete(int ig, int index)
578{

Callers 1

OnChildDestroyedMethod · 0.80

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected