This repository has been archived on 2022-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
Files
glyphs-juke/src/PlayScene.cc
2021-08-26 14:51:50 +09:00

21 lines
542 B
C++

#include "PlayScene.h"
#include "GlyphElementFactory.h"
#include "InputWindowElementFactory.h"
gj::PlayScene::PlayScene(Param&& p) :
alloc_(p.alloc), logger_(p.logger), w_(p.w), h_(p.h),
clock_(p.clock), store_(&clock_, 256) {
GlyphElementFactory glyph(alloc_);
InputWindowElementFactory inputWin(alloc_);
Lua::FactoryMap map;
map["Glyph"] = &glyph;
map["InputWin"] = &inputWin;
lua_ = alloc_->MakeUniq<Lua>(
alloc_, &store_, map, "res/score/" + p.score + ".lua");
logger_->Print(L"PlayScene init");
}