Documentation
¶
Overview ¶
Command modlock-entitygen generates the typed entity classes of the TypeScript and Go mod libraries from the server schema headers that the DumpSource2 tool writes, one directory per module under its schemas directory:
modlock-entitygen -schemas DumpSource2/schemas \ -ts js/src/entities.ts -go mod/entity/entity.go
Every server class that derives from CEntityInstance becomes a class with one getter per field the host can read: scalars, vectors, angles, entity handles and strings. A getter reads its field by name, so a game update that moves a field needs no new build of a mod; one that renames or drops a field needs regenerated classes.
Click to show internal directories.
Click to hide internal directories.