move source files to src

This commit is contained in:
2023-07-08 12:20:34 +02:00
parent 6028c5770f
commit e5c2294f6c
43 changed files with 23 additions and 21 deletions

View File

@@ -0,0 +1,18 @@
// Game framework inspired by AGI
package konstructor
// Main struct of framework
type Konstructor struct {
Domain DomainInterface
EngineWrapper EngineWrapperInterface
}
func (k Konstructor) Init() {
k.Domain.Init()
k.EngineWrapper.Init(EngineArgs{
Domain: k.Domain,
KContext: k.Domain.GetInitialKContext(),
Config: k.Domain.GetInitialConfig(),
})
k.EngineWrapper.Run()
}