diff options
| author | ljfa-ag <ljfa-ag@web.de> | 2015-07-03 19:38:52 +0200 |
|---|---|---|
| committer | ljfa-ag <ljfa-ag@web.de> | 2015-07-03 19:38:52 +0200 |
| commit | 36c1393a5682a7cab500d3f0ca2cb45ddb0a844f (patch) | |
| tree | 7a4135915ed3e9ec283b8f806010be44dd260f0e /src | |
| parent | 09dca802bdfc076ac8457df0b8f657fdce915a75 (diff) | |
| download | Project-Tick-36c1393a5682a7cab500d3f0ca2cb45ddb0a844f.tar.gz Project-Tick-36c1393a5682a7cab500d3f0ca2cb45ddb0a844f.zip | |
Create value_initializer
Diffstat (limited to 'src')
| -rw-r--r-- | src/tag_compound.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tag_compound.cpp b/src/tag_compound.cpp index 94dc2dd6f1..f26044ce20 100644 --- a/src/tag_compound.cpp +++ b/src/tag_compound.cpp @@ -22,6 +22,12 @@ namespace nbt { +tag_compound::tag_compound(std::initializer_list<std::pair<std::string, value_initializer&&>> init) +{ + for(auto& pair: init) + tags.emplace(pair); +} + value& tag_compound::at(const std::string& key) { return tags.at(key); |
