commit 36f950c68fdf72daf32c56d984779c6f36b8ea3a Author: Peter Li Date: Mon Sep 28 21:34:39 2026 -0700 new engine diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9a3c151 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +archive/ +.zig-cache/ +zig-out/ diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..26a9003 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,3 @@ +## Build and validation + +Use Zig 0.16.0. Read `zig/SKILL.md` before Zig work. diff --git a/engine/build.zig b/engine/build.zig new file mode 100644 index 0000000..e69de29 diff --git a/engine/src/core/core.zig b/engine/src/core/core.zig new file mode 100644 index 0000000..4570e3a --- /dev/null +++ b/engine/src/core/core.zig @@ -0,0 +1,4 @@ +/// desc: core crea +pub export fn core_start() callconv(.c) void {} + +pub export fn core_shutdown() callconv(.c) void {} diff --git a/engine/src/platform/platform.zig b/engine/src/platform/platform.zig new file mode 100644 index 0000000..55d3a29 --- /dev/null +++ b/engine/src/platform/platform.zig @@ -0,0 +1,3 @@ +pub export fn platform_start() callconv(.c) void {} + +pub export fn platform_shutdown() callconv(.c) void {} diff --git a/engine/tools/interface-parser.zig b/engine/tools/interface-parser.zig new file mode 100644 index 0000000..5c13477 --- /dev/null +++ b/engine/tools/interface-parser.zig @@ -0,0 +1 @@ +// this thing eats a ribtech top level diff --git a/zig/SKILL.md b/zig/SKILL.md new file mode 100644 index 0000000..eb52f49 --- /dev/null +++ b/zig/SKILL.md @@ -0,0 +1,26 @@ +--- +name: zig +description: Work on Zig 0.16 code and build files using the documentation and standard-library source shipped with the active compiler. Use for writing, reviewing, debugging, or migrating Zig in this repository. +--- + +# Zig 0.16 + +Use the installed Zig toolchain as the source of truth. Do not rely on remembered +APIs or hand-maintained summaries when the compiler distribution can answer the +question directly. + +1. Run `zig version` and require 0.16.0 for this repository. +2. Run `zig env` to locate `zig_exe`, `lib_dir`, and `std_dir`; do not assume a + particular installation path. +3. Consult `/doc/langref.html` for language syntax, + semantics, and builtins. +4. Search `std_dir` for exact APIs, implementations, and tests. Use them as + examples of both correct usage and Zig coding style; follow standard-library + conventions. +5. Use compiler and test failures to verify any inferred API usage. + +for `if` conditions, put continuation `and`/`or` operators at the start of +the next line. Run `zig fmt` on changed Zig files. + +If the installed documentation is unavailable, use the versioned official +reference at .