mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-21 06:05:45 +08:00
Indexed array entity, user defined pins
This commit is contained in:
17
js/entity/IndexedArray.js
Normal file
17
js/entity/IndexedArray.js
Normal file
@@ -0,0 +1,17 @@
|
||||
/** @typedef {import("./IEntity").AnyValueConstructor<*>} AnyValueConstructor */
|
||||
|
||||
export default class IndexedArray {
|
||||
|
||||
#type
|
||||
get type() {
|
||||
return this.#type
|
||||
}
|
||||
|
||||
value = []
|
||||
|
||||
/** @param {AnyValueConstructor} type */
|
||||
constructor(type, value = []) {
|
||||
this.#type = type
|
||||
this.value = value
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user