Help us shape the future of Go! Take the 2026 Go Developer Survey

modlock-entitygen

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL