19 lines
397 B
Go
19 lines
397 B
Go
// 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()
|
|
}
|