Entity records reveals and derives Contact; ChunkInfo reads PassiveInfoPerSignature

The observer's Entity owns a reveal book keyed (subject, item). Sense records a
light act when its strength times PassiveInfoPerSignature clears the detection
threshold; PublishInbox records an emitter whose paint arrived. ReceivePaint takes
the emitter and its item. ContactOf derives Detected, Tracked, Classified and
Identified from track, reveals, the zone clock and GameplaySettings.BearingMemory.
ChunkInfo's arithmetic moves into PassiveInfoPerSignature; ActiveSensors fills one
buffer instead of allocating per call.

Not yet built or tested: verify follows with the tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-11 18:25:57 +02:00
commit 6894c2093e
5 changed files with 176 additions and 17 deletions

View file

@ -198,7 +198,7 @@ public class Sensor : Behavior, IEventBehavior, IPowerConsumer
if (sweeping && dist < _pingRadius && _reached.Add(entity) && InBeam(diff, dist))
{
heard = true;
entity.ReceivePaint(Entity.Position, Item?.Data, PaintMode.Search, 0);
entity.ReceivePaint(Entity, Item, PaintMode.Search, 0);
credit += Gain(entity.Visibility, sensitivity, response, dist, dt, true, obscuration);
var pingReturn = new PingReturn(entity, dist, obscuration, Evaluate(_data.PingRange));
foreach (var ally in Entity.Zone.Entities)