public void SendEvent(FieldEvent evt) { if (evt.HasTargetEntity && _fieldEntitiesGuid.TryGetValue(evt.Target, out var ent)) { ent.OnEvent(evt); return; } if (!_ownerDict.TryGetValue(evt.TargetOwner, out var entries)) { return; } foreach (var entry in entries) { entry.OnEvent(evt); } }
private void MgSendEvent(FieldEvent evt) => Manager?.SendEvent(evt);