mirror of
https://github.com/Ukendio/jecs.git
synced 2025-06-20 08:19:18 +00:00
Compare commits
5 commits
Author | SHA1 | Date | |
---|---|---|---|
|
993d57741f | ||
|
150fccd2ce | ||
|
8420d8832b | ||
|
01c12fccaa | ||
|
29512d4351 |
2 changed files with 7 additions and 4 deletions
6
.github/workflows/release.yaml
vendored
6
.github/workflows/release.yaml
vendored
|
@ -2,7 +2,7 @@ name: release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags: ["v*"]
|
tags: ["v*", "workflow_dispatch"]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -22,7 +22,7 @@ jobs:
|
||||||
run: rojo build --output build.rbxm default.project.json
|
run: rojo build --output build.rbxm default.project.json
|
||||||
|
|
||||||
- name: Upload Build Artifact
|
- name: Upload Build Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: build
|
name: build
|
||||||
path: build.rbxm
|
path: build.rbxm
|
||||||
|
@ -38,7 +38,7 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Download Jecs Build
|
- name: Download Jecs Build
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: build
|
name: build
|
||||||
path: build
|
path: build
|
||||||
|
|
5
jecs.d.ts
vendored
5
jecs.d.ts
vendored
|
@ -165,7 +165,7 @@ export class World {
|
||||||
* @param component The component definition (could be a Pair or Entity).
|
* @param component The component definition (could be a Pair or Entity).
|
||||||
* @param value The value to store with that component.
|
* @param value The value to store with that component.
|
||||||
*/
|
*/
|
||||||
set<T>(entity: Entity, component: Id<T>, value: T): void;
|
set<E extends Id<unknown>>(entity: Entity, component: E, value: InferComponent<E>): void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cleans up the world by removing empty archetypes and rebuilding the archetype collections.
|
* Cleans up the world by removing empty archetypes and rebuilding the archetype collections.
|
||||||
|
@ -288,6 +288,9 @@ export function pair_first<P, O>(world: World, p: Pair<P, O>): Entity<P>;
|
||||||
*/
|
*/
|
||||||
export function pair_second<P, O>(world: World, p: Pair<P, O>): Entity<O>;
|
export function pair_second<P, O>(world: World, p: Pair<P, O>): Entity<O>;
|
||||||
|
|
||||||
|
export function ECS_PAIR_FIRST(pair: Pair): number;
|
||||||
|
export function ECS_PAIR_SECOND(pair: Pair): number;
|
||||||
|
|
||||||
type StatefulHook = Entity<<T>(e: Entity<T>, id: Id<T>, data: T) => void> & {
|
type StatefulHook = Entity<<T>(e: Entity<T>, id: Id<T>, data: T) => void> & {
|
||||||
readonly __nominal_StatefulHook: unique symbol,
|
readonly __nominal_StatefulHook: unique symbol,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue