Trigger Remote Procedure Call
The Gamium Client
communicates with theGamium Engine
to remotely invoke the functions contained in the game.
Before performing this action, check the supporting function through the guide first.
You can use RpcBy by specifying the desired calling method.
You can use it as below.
- TypeScript
- Python
await gamium.executeRpc(
RpcBy.method('Gamium.Private.CodebaseSample', 'CallParam1', 10),
);
const field = await gamium.executeRpc(
RpcBy.field('Gamium.Private.CodebaseSample', 'field'),
);
const property = await gamium.executeRpc(
RpcBy.property('Gamium.Private.CodebaseSample', 'property'),
);
gamium.execute_rpc(
RpcBy.method('Gamium.Private.CodebaseSample', 'CallParam1', 10),
);
field = gamium.execute_rpc(
RpcBy.field('Gamium.Private.CodebaseSample', 'field'),
);
property = gamium.execute_rpc(
RpcBy.property('Gamium.Private.CodebaseSample', 'property'),
);