2023-11-08 15:45:25 +00:00
|
|
|
import Vec3 from "../Vec3"
|
2023-11-02 08:31:43 +00:00
|
|
|
|
2023-04-08 20:52:47 +01:00
|
|
|
export interface IEntity {
|
2023-04-09 04:19:10 +01:00
|
|
|
entityId:number,
|
2023-11-02 08:31:43 +00:00
|
|
|
position:Vec3,
|
2023-11-09 17:04:11 +00:00
|
|
|
motion:Vec3,
|
2023-11-02 08:31:43 +00:00
|
|
|
lastPosition:Vec3,
|
2023-04-10 21:52:30 +01:00
|
|
|
crouching:boolean,
|
2023-11-09 21:59:45 +00:00
|
|
|
isDead:boolean,
|
2023-12-06 00:04:57 +00:00
|
|
|
markedForDisposal:boolean,
|
2023-04-10 21:52:30 +01:00
|
|
|
updateMetadata:() => void,
|
2023-04-10 14:42:14 +01:00
|
|
|
distanceTo:(entity:IEntity) => number,
|
2023-04-09 04:19:10 +01:00
|
|
|
onTick:() => void
|
2023-04-08 20:52:47 +01:00
|
|
|
}
|