modlock-entitygen

command
v0.1.105 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command modlock-entitygen generates the typed entity classes and console of the TypeScript, Go, Luau and Python mod libraries from a game dump, the directory modlock-host --dump writes. Each output flag names a library's source directory:

modlock-entitygen -dump data/dump -ts js/src -go mod -luau luau/modlock -python python/modlock

Every server class that derives from CEntityInstance becomes a class with an accessor per field the host can read: scalars, vectors, angles, entity handles and strings. Each field but a string can also be written. An accessor finds 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.

Each class also has a method per input it accepts that takes one value of a type FireInput sends, or none, and each designer name has a constructor over CreateEntity whose options type its spawn key values.

Each console variable of a scalar or string type has a typed setter, and each console command a runner, both over ServerCommand.

The output depends only on the dump, so regenerating after a game update changes only what the update changed.

Jump to

Keyboard shortcuts

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