-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: change api for defining components, other api changes, refactors
- Loading branch information
1 parent
23fb4a6
commit abad33b
Showing
48 changed files
with
1,666 additions
and
1,596 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@arancini/core": minor | ||
"arancini": minor | ||
--- | ||
|
||
feat: rename world.destroy() to world.reset(), add world.destroy(entity: Entity) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
"@arancini/core": major | ||
"arancini": major | ||
--- | ||
|
||
BREAKING CHANGE: the api for defining components has changed | ||
|
||
Object and Tag components are now defined with the `defineComponent` and `defineTagComponent` utilities: | ||
|
||
```js | ||
// this | ||
const MyComponent = Component.object<{ x: 0 }>() | ||
const MyTagComponent = Component.tag<{ x: 0 }>() | ||
|
||
// has changed to | ||
const MyComponent = defineComponent<{ x: 0 }>() | ||
const MyTagComponent = defineTagComponent() | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@arancini/core": minor | ||
"arancini": minor | ||
--- | ||
|
||
feat: refactor query manager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@arancini/react": patch | ||
--- | ||
|
||
feat: export createECS return type, 'ECS' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@arancini/react": patch | ||
--- | ||
|
||
feat: refactor useQuery component |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@arancini/core": minor | ||
"arancini": minor | ||
--- | ||
|
||
feat: world.entities is now a list, was a map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
"arancini": major | ||
"@arancini/core": major | ||
--- | ||
|
||
feat: class components are no longer object pooled by default, they must opted in with the `@objectPooled` annotation, or by setting the `objectPooled` property on the component definition | ||
|
||
```ts | ||
@objectPooled() | ||
class MyComponent extends Component { /* ... */ } | ||
|
||
// or | ||
|
||
= class MyComponent extends Component { /* ... */ }; | ||
|
||
MyComponent.objectPooled = true; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
abad33b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
arancini-core-storybook – ./
arancini-core-storybook-git-main-isaac-mason.vercel.app
arancini-core-storybook-isaac-mason.vercel.app
recs-core-storybook.vercel.app
abad33b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
arancini-react-storybook – ./
arancini-react-storybook-git-main-isaac-mason.vercel.app
arancini-react-storybook-isaac-mason.vercel.app
recs-react-storybook.vercel.app