Skip to content

Commit 1ff05ea

Browse files
committed
refactor(core): remove default libs in factory
1 parent d03f475 commit 1ff05ea

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

packages/core/src/application/nanoforge-factory.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
1-
import { AssetManagerLibrary } from "@nanoforge-dev/asset-manager";
2-
import { InputLibrary } from "@nanoforge-dev/input";
3-
41
import { type IApplicationOptions } from "./application-options.type";
52
import { NanoforgeClient } from "./nanoforge-client";
63
import { NanoforgeServer } from "./nanoforge-server";
74

85
class NanoforgeFactoryStatic {
96
createClient(options?: Partial<IApplicationOptions>): NanoforgeClient {
10-
const app = new NanoforgeClient(options);
11-
app.useAssetManager(new AssetManagerLibrary());
12-
app.useInput(new InputLibrary());
13-
return app;
7+
return new NanoforgeClient(options);
148
}
159

1610
createServer(options?: Partial<IApplicationOptions>): NanoforgeServer {
17-
const app = new NanoforgeServer(options);
18-
app.useAssetManager(new AssetManagerLibrary());
19-
return app;
11+
return new NanoforgeServer(options);
2012
}
2113
}
2214

0 commit comments

Comments
 (0)