Skip to content

Commit

Permalink
move to experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed Feb 7, 2025
1 parent 4bd5065 commit 10f6dad
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 15 deletions.
6 changes: 4 additions & 2 deletions .changeset/dry-camels-accept.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
"@latticexyz/world": patch
---

Added system libraries for World systems for easier ergonomics when interacting with core systems.
Added experimental system libraries for World systems for easier ergonomics when interacting with core systems.

Note that these libraries are marked experimental as we may make breaking changes to their interfaces.

```solidity
import { worldRegistrationSystem } from "@latticexyz/world/src/codegen/systems/WorldRegistrationSystemLib.sol";
import { worldRegistrationSystem } from "@latticexyz/world/src/experimental/codegen/systems/WorldRegistrationSystemLib.sol";
// equivalent to `IBaseWorld(_world()).registerNamespace("hello")` but directly routed through `world.call` for better gas.
worldRegistrationSystem.registerNamespace("hello");
Expand Down
1 change: 1 addition & 0 deletions packages/world/mud.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export const systemsConfig = defineWorld({
worldgenDirectory: "interfaces",
worldInterfaceName: "IBaseWorld",
generateSystemLibraries: true,
systemLibrariesDirectory: "../experimental/codegen/systems",
},
systems: {
AccessManagementSystem: {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 10f6dad

Please sign in to comment.