UNPKG

gamelet-pixui-frame

Version:

pixui开发者框架

49 lines (48 loc) 1.17 kB
import { ERPC_FUNC_ARG_OPCODE } from "../enums/erpc_func_arg_opcode"; export interface IRPCArg { readonly argType: string; readonly argValue: any; } export interface IRPCNumberArg { readonly argType: string; readonly argValue: number; } export interface IRPCBooleanArg { readonly argType: string; readonly argValue: boolean; } export interface IRPCObjectArg { readonly argType: string; readonly argValue: Object; } export interface IRPCStringArg { readonly argType: string; readonly argValue: string; } export interface IRPCUndefinedArg { readonly argType: string; readonly argValue: undefined; } export interface IRPCNullArg { readonly argType: string; readonly argValue: null; } export interface IRPCFuncArg { readonly argType: string; readonly argValue: { func: string; opcode: ERPC_FUNC_ARG_OPCODE; }; } export interface IRPC { readonly id: number; readonly func: string; readonly args: Array<IRPCArg>; } export interface IRPCRet { readonly id: number; readonly func: string; readonly ret: IRPCArg; readonly isOk: boolean; readonly errMsg: string; }