Some label fixes

This commit is contained in:
2026-06-25 19:56:14 -05:00
parent d85737cc08
commit 722fe2ccfb
30 changed files with 290 additions and 105 deletions
+2 -2
View File
@@ -8,11 +8,11 @@
/** Overworld character component (player or NPC). */
interface Overworld extends Component {
/**
* Entity type `Overworld.PLAYER` or `Overworld.NPC`.
* Entity type - `Overworld.PLAYER` or `Overworld.NPC`.
*/
type: number;
/**
* Facing direction one of the `Overworld.FACING_*` constants.
* Facing direction - one of the `Overworld.FACING_*` constants.
*/
facing: number;
/** Component ID of the linked Renderable, or INVALID if none. */
+1 -1
View File
@@ -21,7 +21,7 @@ interface OverworldCamera extends Component {
/** Orthographic scale factor (larger = wider view). */
scale: number;
/**
* Convenience setter equivalent to assigning `targetEntity` and
* Convenience setter - equivalent to assigning `targetEntity` and
* `targetPositionComponent` individually.
*/
setTarget(targetEntityId: number, targetPositionComponentId: number): void;
+2 -2
View File
@@ -7,10 +7,10 @@
/** Physics body component. */
interface Physics extends Component {
/** Body simulation type `Physics.STATIC`, `DYNAMIC`, or `KINEMATIC`. */
/** Body simulation type - `Physics.STATIC`, `DYNAMIC`, or `KINEMATIC`. */
bodyType: number;
/**
* Collision shape type one of the `Physics.SHAPE_*` constants.
* Collision shape type - one of the `Physics.SHAPE_*` constants.
* Changing the type preserves existing velocity and ground state.
*/
shape: number;
+1 -1
View File
@@ -5,7 +5,7 @@
* https://opensource.org/licenses/MIT
*/
/** Transform component local/world PRS with an optional parent hierarchy. */
/** Transform component - local/world PRS with an optional parent hierarchy. */
interface Position extends Component {
/**
* Local-space position. Reading returns a Vec3 copy; assigning a Vec3
+2 -2
View File
@@ -7,7 +7,7 @@
/** A Renderable component. Returned by `entity.add(Component.RENDERABLE)`. */
interface Renderable extends Component {
/** Current render type one of the `Renderable.*` type constants. */
/** Current render type - one of the `Renderable.*` type constants. */
type: number;
/** Render priority. 0 = auto. Higher = drawn later. */
priority: number;
@@ -28,7 +28,7 @@ interface Renderable extends Component {
texture: Texture | undefined;
/**
* Sprite list. Reading returns a JS array of 10-element sub-arrays
* `[x1,y1,z1, x2,y2,z2, u1,v1, u2,v2]` one per sprite.
* `[x1,y1,z1, x2,y2,z2, u1,v1, u2,v2]` - one per sprite.
*
* Assigning an array replaces all sprites. Each element may be:
* - 10 numbers (3D): `[x1,y1,z1, x2,y2,z2, u1,v1, u2,v2]`