UNPKG

polygonjs-engine

Version:

node-based webgl 3D engine https://polygonjs.com

14 lines (12 loc) 476 B
import {AttribValue} from '../../types/GlobalTypes'; import {Vector4} from 'three/src/math/Vector4'; import {Vector3} from 'three/src/math/Vector3'; import {Vector2} from 'three/src/math/Vector2'; export abstract class CoreEntity { constructor(protected _index: number) {} index() { return this._index; } abstract attribValue(name: string, target?: Vector2 | Vector3 | Vector4): AttribValue | undefined; abstract stringAttribValue(name: string): string | undefined; }