Port events-mod to Factorio 2.0.77, declare SE/Krastorio 2 compatibility

Bumps the Factorio engine pin and typed-factorio (1.11.0 -> 3.36.0,
targeting 2.0.75) and fixes the resulting breaking API changes:
global -> storage, game.*_prototypes -> prototypes.*, game.table_to_json/
encode_string -> helpers.*, OnBuiltEntityEvent.created_entity -> .entity,
removed TileRead/ColorTable/MapPositionTable-style write-form aliases,
new CollisionMask shape, restructured settings-stage type imports, and
new defines.entity_status values (added to the Status enum, generated
schema, and EntityStatusRecord mapping). Also declares optional mod
dependencies on space-exploration and Krastorio2.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Lazzexus 2026-10-12 15:06:30 +02:00
parent 8281821075
commit 072d1a2845
20 changed files with 183 additions and 73 deletions

View file

@ -10,8 +10,7 @@
"types": [
"@typescript-to-lua/language-extensions",
"lua-types/5.2",
"typed-factorio/runtime",
"typed-factorio/strict-index-types"
"typed-factorio/runtime"
],
"plugins": [
{