polygonjs-engine
Version:
node-based webgl 3D engine https://polygonjs.com
29 lines (28 loc) • 528 B
JavaScript
export class BaseConnectionPoint {
constructor(_name, _type, _init_value) {
this._name = _name;
this._type = _type;
this._init_value = _init_value;
}
get init_value() {
return this._init_value;
}
name() {
return this._name;
}
type() {
return this._type;
}
are_types_matched(src_type, dest_type) {
return true;
}
toJSON() {
return this._json = this._json || this._create_json();
}
_create_json() {
return {
name: this._name,
type: this._type
};
}
}