mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:50:33 +08:00
17 lines
335 B
JavaScript
17 lines
335 B
JavaScript
export default class ETypesNames {
|
|
|
|
constructor(type) {
|
|
switch (type) {
|
|
case 'Class':
|
|
case 'None':
|
|
this.value = type
|
|
break
|
|
default:
|
|
throw new Error('Unexpected type name')
|
|
}
|
|
}
|
|
|
|
toString() {
|
|
return this.value
|
|
}
|
|
} |