Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

sdkgenny

This is the global API for luagenny. It provides functions for parsing .genny type definitions and constructing overlay objects for reading/writing typed memory.

Functions

sdkgenny.parse(data: string)

Parses an in-memory genny schema string and returns an Sdk object.

local sdk = sdkgenny.parse([[
struct Foo {
    int a;
    float b;
};
]])

sdkgenny.parse_file(filename: string)

Reads a .genny schema file from disk and parses it, returning an Sdk object.

local sdk = sdkgenny.parse_file("types.genny")

Types

  • Sdk - The root SDK object for code generation and reflection.
  • StructOverlay - Overlay for reading/writing struct memory by field name.
  • PointerOverlay - Overlay for interacting with pointer-typed memory.
  • Type hierarchy - The full type model (Object, Type, Struct, Variable, etc.).