mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-07-04 17:20:40 +08:00
Progress: Documentation
This commit is contained in:
@@ -80,6 +80,8 @@ GarageServerIO.addInput(myInput);
|
||||
|
||||
### Client
|
||||
|
||||
#### initializeGarageServer
|
||||
|
||||
```js
|
||||
GarageServerIO.initializeGarageServer(path, options)
|
||||
/*
|
||||
@@ -109,6 +111,8 @@ Type: object literal
|
||||
|
||||
---
|
||||
|
||||
#### addInput
|
||||
|
||||
```js
|
||||
GarageServerIO.addInput(input)
|
||||
```
|
||||
@@ -118,6 +122,8 @@ Type: object literal
|
||||
|
||||
---
|
||||
|
||||
#### getStates
|
||||
|
||||
```js
|
||||
GarageServerIO.getStates(callback([, playerState], [, entityState]))
|
||||
```
|
||||
@@ -133,6 +139,8 @@ Type: array of object literals
|
||||
|
||||
---
|
||||
|
||||
#### getId
|
||||
|
||||
```js
|
||||
GarageServerIO.getId() : playerid
|
||||
```
|
||||
@@ -142,6 +150,8 @@ Type: number
|
||||
|
||||
---
|
||||
|
||||
#### sendServerEvent
|
||||
|
||||
```js
|
||||
GarageServerIO.sendServerEvent(data)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user