24 lines
605 B
TypeScript
24 lines
605 B
TypeScript
// UE/StringLibrary.ts
|
|
|
|
import { BlueprintFunctionLibrary } from '#root/UE/BlueprintFunctionLibrary.ts';
|
|
import type { Vector } from '#root/UE/Vector.ts';
|
|
|
|
class StringLibraryClass extends BlueprintFunctionLibrary {
|
|
constructor(
|
|
outer: null | BlueprintFunctionLibrary = null,
|
|
name: string = 'StringLibrary'
|
|
) {
|
|
super(outer, name);
|
|
}
|
|
|
|
public Append(A: string, B: string): string {
|
|
return A + B;
|
|
}
|
|
|
|
public ConvVectorToString(InVector: Vector): string {
|
|
return `X=${InVector.X}, Y=${InVector.Y}, Z=${InVector.Z}`;
|
|
}
|
|
}
|
|
|
|
export const StringLibrary = new StringLibraryClass();
|