24 lines
527 B
TypeScript
24 lines
527 B
TypeScript
// UE/TextLibrary.ts
|
|
|
|
import { BlueprintFunctionLibrary } from '#root/UE/BlueprintFunctionLibrary.ts';
|
|
import type { Text } from '#root/UE/Text.ts';
|
|
|
|
class TextLibraryClass extends BlueprintFunctionLibrary {
|
|
constructor(
|
|
outer: null | BlueprintFunctionLibrary = null,
|
|
name: string = 'SystemLibrary'
|
|
) {
|
|
super(outer, name);
|
|
}
|
|
|
|
public TextToString(text: Text): string {
|
|
return text;
|
|
}
|
|
|
|
public StringToText(str: string): Text {
|
|
return str;
|
|
}
|
|
}
|
|
|
|
export const TextLibrary = new TextLibraryClass();
|