feat: GameEngineController
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import type { RPCLists } from "@sammo/server_util";
|
||||
import type { ActionRequest, ActionResult } from "./GameEngine.js";
|
||||
|
||||
|
||||
|
||||
export type GameEngineRPCDefs = {
|
||||
stop: ()=>Promise<void>,
|
||||
pushAPIAction: (action: ActionRequest)=>Promise<ActionResult>,
|
||||
pushServerAction: (action: ActionRequest)=>Promise<ActionResult>,
|
||||
};
|
||||
|
||||
|
||||
type WorkerUpdate = {
|
||||
type: 'update',
|
||||
lastExecuted: string,
|
||||
}
|
||||
|
||||
export type GameEngineMsg = WorkerUpdate;
|
||||
Reference in New Issue
Block a user