Skip to content

Commit

Permalink
Moved audio to components folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Irrelon committed Mar 25, 2024
1 parent e89f4c6 commit b9c7a2f
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 17 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { IgeAudioSource } from "@/engine/audio/IgeAudioSource";
import type { IgeAudioSource } from "@/engine/components/audio/IgeAudioSource";
import { IgeAssetRegister } from "@/engine/core/IgeAssetRegister";
import { isClient } from "@/engine/utils/clientServer";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IgeAudioControl } from "@/engine/audio/IgeAudioControl";
import { IgeAudioControl } from "@/engine/components/audio/IgeAudioControl";
import { IgeEntity } from "@/engine/core/IgeEntity";
import { ige } from "@/engine/instance";
import { isClient } from "@/engine/utils/clientServer";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { IgeSmartAudioSource } from "@/engine/audio/IgeSmartAudioSource";
import type { IgeSmartAudioSource } from "@/engine/components/audio/IgeSmartAudioSource";
import { IgeAsset } from "@/engine/core/IgeAsset";
import { ige } from "@/engine/instance";
import { isServer } from "@/engine/utils/clientServer";
Expand Down
File renamed without changes.
11 changes: 2 additions & 9 deletions src/engine/core/Ige.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { IgeAudioController } from "@/engine/audio/IgeAudioController";
import type { IgeAudioController } from "@/engine/components/audio/IgeAudioController";
import { IgeInputComponent } from "@/engine/components/IgeInputComponent";
import type { IgeBox2dController } from "@/engine/components/physics/box2d/IgeBox2dController";
import { igeConfig } from "@/engine/core/config";
Expand Down Expand Up @@ -68,10 +68,6 @@ export class Ige implements IgeIsReadyPromise {
_pointerOverVp?: IgeViewport;
_pointerPos: IgePoint3d = new IgePoint3d(); // Could probably be just {x: number, y: number}

constructor () {

}

init () {
// Output our header
console.log("-----------------------------------------");
Expand All @@ -83,9 +79,6 @@ export class Ige implements IgeIsReadyPromise {
this.uses("engine");
this.uses("input");
this.uses("time");

//this.dependencies.markAsSatisfied("engine");
//this.dependencies.markAsSatisfied("box2d");
}

uses (moduleName: string) {
Expand Down Expand Up @@ -133,7 +126,7 @@ export class Ige implements IgeIsReadyPromise {
if (isClient && !isWorker) {
this.dependencies.add(
"audio",
import("../audio/IgeAudioController.js").then(({ IgeAudioController: Module }) => {
import("@/engine/components/audio/IgeAudioController.js").then(({ IgeAudioController: Module }) => {
this.audio = new Module();
})
);
Expand Down
10 changes: 5 additions & 5 deletions src/export/exports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export * from "../engine/core/IgeArrayRegister";
export * from "../engine/core/IgeQuest";
export * from "../engine/core/IgeGenericPathFinder";
export * from "../engine/core/IgeCanvas";
export * from "../engine/audio/IgeAudioController";
export * from "@/engine/components/audio/IgeAudioController";
export * from "../engine/network/client/IgeNetIoClient";
export * from "../engine/network/server/IgeNetIoSocket";
export * from "../engine/network/server/IgeNetIoServer";
Expand Down Expand Up @@ -238,10 +238,10 @@ export * from "../engine/components/IgeInputComponent";
export * from "../engine/components/IgeGamePadComponent";
export * from "../engine/components/IgeEntityManagerComponent";

export * from "../engine/audio/IgeSmartAudioSource";
export * from "../engine/audio/IgeAudioSource";
export * from "../engine/audio/IgeAudioControl";
export * from "../engine/audio/IgeAudioEntity";
export * from "@/engine/components/audio/IgeSmartAudioSource";
export * from "@/engine/components/audio/IgeAudioSource";
export * from "@/engine/components/audio/IgeAudioControl";
export * from "@/engine/components/audio/IgeAudioEntity";

//////////////////////////////////////////////////////////////////////
// UI Element Classes
Expand Down

0 comments on commit b9c7a2f

Please sign in to comment.