An example of oop in Factorio which works through save-load and multiplayer. deprecated


But this version doesn't help you enough. I'll update it in the future. Metatable feature is very powerful when people do oop in lua. But in Factorio-lua, metatable feature is not practical at all especially for the giant project. This tiny example shows a practical way to do oop-like enough programming in Factorio-lua.

3 years ago
1.1
9
Owner:
YagaoDirac
Source:
N/A
Homepage:
N/A
License:
MIT
Created:
3 years ago
Latest Version:
1.0.0 (3 years ago)
Factorio version:
1.1
Downloaded by:
9 users

Some of the developers encounter the desync issue. This tiny example shows a way to get rid of this issue.
The metatable is very powerful but not practical in Factorio. This example doesn't contain any metatable. It's somehow very much alike when people do oop in C. I mean, C, not cpp.

Any question, comment.