Initial upload
This commit is contained in:
10
docs/stardust-protocol/server/objects/lifecycle.md
Normal file
10
docs/stardust-protocol/server/objects/lifecycle.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# /lifecycle
|
||||
Object representing the life cycle of the Stardust server, from start to each frame to end.
|
||||
|
||||
## Signals
|
||||
### `subscribeLogicStep(string path, string method)`
|
||||
Executes `method` on object at `path` on the client when the main logic loop of the server starts each frame.
|
||||
|
||||
`method` must have arguments of `(double delta, double timeToRender)`.
|
||||
|
||||
`delta` gives the time in seconds between the current time and the last time the logic loop executed while `timeToRender` gives the time in ms since epoch when the current frame is expected to reach the user's eyes.
|
||||
Reference in New Issue
Block a user