mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-07-31 12:25:49 +00:00
wip
This commit is contained in:
@@ -16,7 +16,7 @@ export type MultiplayerEngineControllerBaseOptions = {
|
||||
antialias: boolean;
|
||||
};
|
||||
|
||||
export abstract class MultiplayerEngineControllerBase<T extends MultiplayEngineBase<MultiplayEngineBaseEvents>> extends EngineControllerBase<T> {
|
||||
export abstract class MultiplayerEngineControllerBase<T extends MultiplayEngineBase<MultiplayEngineBaseEvents>, E> extends EngineControllerBase<T, E> {
|
||||
public myPlayerState = shallowRef<PlayerState>({
|
||||
position: [0, 0, 0],
|
||||
rotation: [0, 0, 0],
|
||||
|
||||
@@ -7,7 +7,6 @@ import { shallowRef } from 'vue';
|
||||
import { MultiplayerEngineControllerBase } from './MultiplayerEngineControllerBase.js';
|
||||
import { Wasd } from './Wasd.js';
|
||||
import type { WorldEngine } from 'misskey-world-engine/src/engine.js';
|
||||
import type { PlayerProfile, PlayerState } from 'misskey-world-engine/src/PlayerContainer.js';
|
||||
|
||||
export type WorldEngineControllerOptions = {
|
||||
workerMode?: boolean;
|
||||
@@ -18,7 +17,9 @@ export type WorldEngineControllerOptions = {
|
||||
};
|
||||
|
||||
// 抽象化レイヤー
|
||||
export class WorldEngineController extends MultiplayerEngineControllerBase<WorldEngine> {
|
||||
export class WorldEngineController extends MultiplayerEngineControllerBase<WorldEngine, {
|
||||
'playerPointed': { playerId: string; };
|
||||
}> {
|
||||
constructor(options: WorldEngineControllerOptions) {
|
||||
super(options, new Wasd({
|
||||
setCameraMoveVector: (vec, dash) => {
|
||||
|
||||
@@ -11,7 +11,6 @@ import type { ShallowRef } from 'vue';
|
||||
import type { RoomState_InstalledFurniture } from 'misskey-world/src/room/furniture.js';
|
||||
import type { RoomEngine } from 'misskey-world-engine/src/room/engine.js';
|
||||
import type { RoomAttachments, RoomState } from 'misskey-world/src/room/type.js';
|
||||
import type { PlayerProfile, PlayerState } from 'misskey-world-engine/src/PlayerContainer.js';
|
||||
import * as sound from '@/utility/sound.js';
|
||||
import { deepEqual } from '@/utility/deep-equal.js';
|
||||
import { deepClone } from '@/utility/clone.js';
|
||||
|
||||
Reference in New Issue
Block a user