mc-beta-server/server/entities/Entity.ts
2023-04-08 20:52:47 +01:00

23 lines
No EOL
498 B
TypeScript

import { World } from "../World";
import { IEntity } from "./IEntity";
export class Entity implements IEntity {
public static nextEntityId:number = 0;
public entityId:number;
public world:World;
public x:number;
public y:number;
public z:number;
public lastX:number;
public lastY:number;
public lastZ:number;
public constructor(world:World) {
this.entityId = Entity.nextEntityId++;
this.world = world;
this.x = this.y = this.z = this.lastX = this.lastY = this.lastZ = 0;
}
}