34 lines
902 B
TypeScript
34 lines
902 B
TypeScript
// UE/Actor.ts
|
|
|
|
import { Name } from '#root/UE/Name.ts';
|
|
import { Rotator } from '#root/UE/Rotator.ts';
|
|
import { UEObject } from '#root/UE/UEObject.ts';
|
|
import { Vector } from '#root/UE/Vector.ts';
|
|
|
|
export class Actor extends UEObject {
|
|
constructor(outer: UEObject | null = null, name: Name | string = Name.NONE) {
|
|
super(outer, name);
|
|
}
|
|
|
|
public SetActorLocation(
|
|
NewLocation: Vector = new Vector(),
|
|
Sweep: boolean = false,
|
|
Teleport: boolean = false
|
|
): void {
|
|
console.log(NewLocation, Sweep, Teleport);
|
|
// Implementation for setting actor location
|
|
}
|
|
|
|
public SetActorRotation(
|
|
NewRotation: Rotator = new Rotator(),
|
|
TeleportPhysics: boolean = false
|
|
): void {
|
|
console.log(NewRotation, TeleportPhysics);
|
|
// Implementation for setting actor rotation
|
|
}
|
|
|
|
public GetActorLocation(): Vector {
|
|
return new Vector(); // Placeholder implementation
|
|
}
|
|
}
|