Adds InputWindowElement.
This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user