File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
packages/core/src/application Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 1- import { AssetManagerLibrary } from "@nanoforge-dev/asset-manager" ;
2- import { InputLibrary } from "@nanoforge-dev/input" ;
3-
41import { type IApplicationOptions } from "./application-options.type" ;
52import { NanoforgeClient } from "./nanoforge-client" ;
63import { NanoforgeServer } from "./nanoforge-server" ;
74
85class 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
You can’t perform that action at this time.
0 commit comments