tengri/Content/UE/Pawn.ts

31 lines
774 B
TypeScript

// Content/UE/Pawn.ts
import { Actor } from '/Content/UE/Actor.ts';
import { Controller } from '/Content/UE/Controller.ts';
import { Name } from '/Content/UE/Name.ts';
import { Rotator } from '/Content/UE/Rotator.ts';
import { UEObject } from '/Content/UE/UEObject.ts';
import type { Float } from '/Content/UE/Float.ts';
export class Pawn extends Actor {
constructor(outer: UEObject | null = null, name: Name | string = Name.NONE) {
super(outer, name);
}
public GetController(): Controller {
return new Controller(this);
}
public GetControlRotation(): Rotator {
return new Rotator();
}
public AddControllerYawInput(Val: Float): void {
console.log(Val);
}
public AddControllerPitchInput(Val: Float): void {
console.log(Val);
}
}