General Actions to handlers Refacto
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { AccesRights } from '../accesRights.js'
|
||||
import { GpsStorageReader } from './gpsStorageReader.js'
|
||||
import { RequestorRegistry } from './requestorRegistry.js'
|
||||
import { publishActionReply } from './actionsHelper.js'
|
||||
import { replyToAction } from '../bus/publishActionReply.js'
|
||||
import { SimState } from '../GPS/simulationState.js'
|
||||
|
||||
export class observerServer {
|
||||
@@ -61,14 +61,11 @@ export class observerServer {
|
||||
publishFrustumUpdate(sender, payload) {
|
||||
if(!this.systemCnx || !sender) return
|
||||
const observer = this.observerConfig.observer ?? {}
|
||||
publishActionReply(this.systemCnx, {
|
||||
replyToAction(this.systemCnx, {
|
||||
action: 'GETAGENTSINFRUSTUM',
|
||||
sender,
|
||||
replyChannel: observer.observerActionsReply ?? 'system:replies:[UID]',
|
||||
reply: {
|
||||
success: true,
|
||||
payload,
|
||||
},
|
||||
success: true,
|
||||
payload,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user