From 3b3e9af778a8e911b8cd6e50f68dc931cd3df92e Mon Sep 17 00:00:00 2001 From: Mees van der Wijk Date: Sat, 9 Aug 2025 16:42:53 +0200 Subject: [PATCH] Started on GameLib in client --- ModuleClientAPIGameLib.md | 22 ++++++++++++++++++++-- ModuleClientAPIGameLibController.md | 3 +++ 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 ModuleClientAPIGameLibController.md diff --git a/ModuleClientAPIGameLib.md b/ModuleClientAPIGameLib.md index c9a67ba..39b3664 100644 --- a/ModuleClientAPIGameLib.md +++ b/ModuleClientAPIGameLib.md @@ -1,2 +1,20 @@ -# ModuleClientApi - Feedback -Need to do this sometime... Please contact me if needed! \ No newline at end of file +# ModuleClientApi - GameLib + +Class representing the GameLib inside the ModuleClientAPI. + +## Controller + +### newController + +Send a message to the ModuleServerAPI. + +```javascript +api.GameLib.newController(roomId, controllerId); +``` + +| Argument | Type | Description | +| ------------ | ------ | ------------------------- | +| roomId | string | The ID of the game room. | +| controllerId | string | The ID of the controller. | + +**Return** [Controller](./ModuleClientAPIGameLibController) _The GameLib Controller_ diff --git a/ModuleClientAPIGameLibController.md b/ModuleClientAPIGameLibController.md new file mode 100644 index 0000000..6258516 --- /dev/null +++ b/ModuleClientAPIGameLibController.md @@ -0,0 +1,3 @@ +# ModuleClientApi - GameLib Controller + +Class representing the GameLib Controller inside the ModuleClientAPI.