Adds InputWindowElement.

This commit is contained in:
2021-08-26 14:51:50 +09:00
parent 11279acb02
commit a07c61675e
19 changed files with 385 additions and 9 deletions

View File

@@ -1,15 +1,18 @@
#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_);
GlyphElementFactory glyph(alloc_);
InputWindowElementFactory inputWin(alloc_);
Lua::FactoryMap map;
map["Glyph"] = &glyph;
map["Glyph"] = &glyph;
map["InputWin"] = &inputWin;
lua_ = alloc_->MakeUniq<Lua>(
alloc_, &store_, map, "res/score/" + p.score + ".lua");