mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-03-12 11:07:40 +08:00
Started work on serialization, refactoring
This commit is contained in:
17
js/ETypesNames.js
Normal file
17
js/ETypesNames.js
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user