You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

26 lines
618 B

import * as THREE from 'three'
/**
* BaseEntity class
* Provides a base for managing logistics unit entities.
*/
export default abstract class BaseEntity {
protected itemJson!: ItemJson
protected objects!: THREE.Object3D[]
/**
* Sets the `ItemJson` data for the entity.
* @param itemJson - The `ItemJson` data to set.
*/
setItem(itemJson: ItemJson): void {
this.itemJson = itemJson
}
/**
* Sets the `THREE.Object3D` object for the entity.
* @param object3D - The `THREE.Object3D` object to set.
*/
setObjects(objects: THREE.Object3D[]): void {
this.objects = objects
}
}