Implements element handling.

This commit is contained in:
2021-08-25 18:17:31 +09:00
parent 213902021c
commit e74a599ac1
20 changed files with 2081 additions and 76 deletions

View File

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