Rename engine to cubi
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user