mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-18 11:37:33 +08:00
Vector2D support
This commit is contained in:
15
js/entity/Vector2DEntity.js
Normal file
15
js/entity/Vector2DEntity.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import IEntity from "./IEntity"
|
||||
|
||||
export default class Vector2DEntity extends IEntity {
|
||||
|
||||
static attributes = {
|
||||
X: Number,
|
||||
Y: Number,
|
||||
}
|
||||
|
||||
constructor(values) {
|
||||
super(values)
|
||||
/** @type {Number} */ this.X
|
||||
/** @type {Number} */ this.Y
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user