You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+2
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@ Limit Theory Redux is a fork of the now-cancelled open world space simulation ga
6
6
7
7
This repository continues the game and engine code from the second generation of LT's development, when all work was originally migrated to C/C++ and Lua, which we have since ported to Rust and Lua. For the older, C++/LTSL version of Limit Theory, see https://github.com/JoshParnell/ltheory-old.
8
8
9
+
[Documentation](doc/README.md).
10
+
9
11
## Contributing to Limit Theory Redux
10
12
See [CONTRIBUTING.md](CONTRIBUTING.md) for more information.
Lua Worker is based on the engine worker and allows to run Lua code in the new Lua state in a separate thread.
4
+
5
+
[TaskQueue](../../engine/lib/phx/script/meta/TaskQueue.lua)([ext](../../engine/lib/phx/script/ffi_ext/TaskQueue.lua)) object is used to create and manage workers. To send data between workers and main thread [Payload](../../engine/lib/phx/script/meta/Payload.lua) object is used.
6
+
7
+
Steps to create a new worker and run it:
8
+
1. Create a new worker function in a separate file, see [TestWorkerFunction](../../script/States/App/Tests/TestWorkerFunction.lua) for example.
9
+
- Use `WorkerFunction.Create()` to create a worker function. As an input parameter it accepts a callback function with a single input parameter that can be either a simple type (integer, string, etc.) or **Payload**, and that returns an optional output of the same type (simple or **Payload**).
10
+
2. Create and run worker, see [WorkerTest](../../script/States/App/Tests/WorkerTest.lua) for example.
11
+
1. Create and start worker with a new worker type:
0 commit comments