feat: complete actor handoff and piloted aircraft presence
This commit is contained in:
+16
-1
@@ -2,6 +2,7 @@
|
||||
|
||||
export type RealtimeActorKind = "humanoid" | "dog" | "crow";
|
||||
export type RealtimeVehicleKind = "model-x";
|
||||
export type RealtimeAircraftKind = "electric-vtail";
|
||||
export type RealtimeMemberRole = "visitor" | "member" | "admin";
|
||||
export type RealtimeRevocationReason =
|
||||
| "signed-out"
|
||||
@@ -104,7 +105,21 @@ export interface VehiclePoseSnapshot extends EntityPoseSnapshotBase {
|
||||
wheelRadians: number;
|
||||
}
|
||||
|
||||
export type EntityPoseSnapshot = ActorPoseSnapshot | VehiclePoseSnapshot;
|
||||
/** Authoritative state needed to reproduce a piloted aircraft on another client. */
|
||||
export interface AircraftPoseSnapshot extends EntityPoseSnapshotBase {
|
||||
entity: "aircraft";
|
||||
aircraftId: string;
|
||||
kind: RealtimeAircraftKind;
|
||||
pilotActorId: string;
|
||||
rollDeg: number;
|
||||
throttle: number;
|
||||
rollInput: number;
|
||||
pitchInput: number;
|
||||
yawInput: number;
|
||||
fanRadians: number;
|
||||
}
|
||||
|
||||
export type EntityPoseSnapshot = ActorPoseSnapshot | VehiclePoseSnapshot | AircraftPoseSnapshot;
|
||||
|
||||
export interface JoinRequest {
|
||||
type: "join-request";
|
||||
|
||||
Reference in New Issue
Block a user