about summary refs log tree commit diff stats
path: root/data/maps/daedalus/rooms/House.txtpb
blob: 3cfd4d8283eb14eec123b52ed3036a45c2ac9105 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: "House"
panel_display_name: "House"
panels {
  name: "GOAT"
  path: "Panels/Theos House/panel_1"
  clue: "goat"
  answer: "kid"
  symbols: AGE
}
panels {
  name: "AMAZE"
  path: "Panels/Theos House/panel_2"
  clue: "amaze"
  answer: "wow"
  symbols: SUN
}
panels {
  name: "SKINNYHIM"
  path: "Panels/Theos House/panel_3"
  clue: "skinnyhim"
  answer: "dad"
  symbols: SUN
  symbols: GENDER
}
panels {
  name: "THEO"
  path: "Panels/Theos House/panel_4"
  clue: "theo"
  answer: "theo"
}
span class="o">: using value_type = T; private: using vector_type = std::vector<value_type>; public: using key_type = typename vector_type::size_type; key_type add(const value_type& val) { auto it = ids_.find(val); if (it == std::end(ids_)) { key_type ret = ids_.size(); ids_[val] = ret; uniq_.push_back(val); return ret; } else { return it->second; } } void compile() { ids_.clear(); } inline const value_type& get(key_type i) const { return uniq_.at(i); } inline key_type size() const { return uniq_.size(); } private: std::map<value_type, key_type> ids_; vector_type uniq_; }; #endif /* end of include guard: IDENTIFIER_H_D7EE5679 */