-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
"@latticexyz/common": patch | ||
--- | ||
|
||
Added an export for the root namespace string, which can be imported like so: | ||
|
||
``` | ||
import { ROOT_NAMESPACE } from "@latticexyz/common"; | ||
if (namespace === ROOT_NAMESPACE) { | ||
... | ||
} | ||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
"@latticexyz/world": patch | ||
"@latticexyz/cli": patch | ||
--- | ||
|
||
Added support for namespaced systems. Namespaced systems are declared like regular systems, but the file and contract name is prefixed with the namespace name and two underscores in the form `{namespace}__{system}.sol`. For example, the contract `app__ChatSystem` will be registered as `"ChatSystem"` in the `"app"` namespace. | ||
|
||
```solidity | ||
contract app__ChatSystem is System { | ||
function sendMessage(string memory message) public { | ||
... | ||
} | ||
} | ||
``` |
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.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ export type Resource = { | |
readonly namespace: string; | ||
readonly name: string; | ||
}; | ||
|
||
export const ROOT_NAMESPACE = ""; |
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.
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.