feat: GameEngineWorker
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import type { RPCLists } from "@sammo/server_util";
|
||||
import type { ActionRequest, ActionResult } from "./GameEngine.js";
|
||||
|
||||
import type { MessagePort } from "node:worker_threads";
|
||||
|
||||
|
||||
export type GameEngineRPCDefs = {
|
||||
@@ -15,4 +15,13 @@ type WorkerUpdate = {
|
||||
lastExecuted: string,
|
||||
}
|
||||
|
||||
export type GameEngineMsg = WorkerUpdate;
|
||||
export type GameEngineMsg = WorkerUpdate;
|
||||
|
||||
|
||||
type WorkerInit = {
|
||||
type: 'init',
|
||||
port: MessagePort,
|
||||
guid: string,
|
||||
}
|
||||
|
||||
export type GameEngineWorkerMsg = WorkerInit;
|
||||
Reference in New Issue
Block a user