Rename engine to cubi

This commit is contained in:
2026-11-03 17:17:37 -03:00
parent 68b78f053a
commit 98fa45ebd1
109 changed files with 643 additions and 788 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ export interface AttributeType {
}
function attribute(id: string, value: number, min: number, max: number): AttributeType {
return { id: `bworld:${id}`, default: value, min, max };
return { id: `cubi:${id}`, default: value, min, max };
}
export const ATTRIBUTES = {
+1 -1
View File
@@ -130,7 +130,7 @@ export interface SavedEntity {
}
export abstract class Entity {
// the entity type, like "bworld:item". see entity_types.ts
// the entity type, like "cubi:item". see entity_types.ts
abstract readonly type: string;
readonly level: EntityLevel;
// a UUID, which clients know it by too
+2 -2
View File
@@ -7,7 +7,7 @@ import { TICK_DELTA } from "$/common/constants.ts";
import { physics } from "$/common/physics.ts";
import { type Attacker, type DamageSource, Entity, finite, type SavedEntity } from "./entity.ts";
export const ITEM_ENTITY_TYPE = "bworld:item";
export const ITEM_ENTITY_TYPE = "cubi:item";
// minecraft's item physics, its per tick numbers turned into per second ones where they're speeds
export const ITEM_SIZE = 0.25;
@@ -61,7 +61,7 @@ export class ItemEntity extends Entity {
constructor(
level: Entity["level"],
item = new ItemStack("bworld:air", 0),
item = new ItemStack("cubi:air", 0),
x = 0,
y = 0,
z = 0,