diff options
Diffstat (limited to 'src/game/data.cpp')
| -rw-r--r-- | src/game/data.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/data.cpp b/src/game/data.cpp index 54f7fdb..654cac6 100644 --- a/src/game/data.cpp +++ b/src/game/data.cpp @@ -37,6 +37,7 @@ MaterialDef read_material(const sol::table& m) { d.tension_only = m.get_or("tension_only", false); d.half_width = m.get_or("half_width", 0.15f); d.texture = m.get_or("texture", std::string("")); + d.texture_forts = m.get_or("texture_forts", std::string("")); sol::optional<sol::table> col = m["color"]; d.r = col ? col->get_or(1, 0.8f) : 0.8f; @@ -138,6 +139,8 @@ WeaponDef read_weapon(const sol::table& w) { d.energy_cost = w.get_or("energy_cost", 0.0f); d.texture = w.get_or("texture", std::string("")); d.projectile_texture = w.get_or("projectile_texture", std::string("")); + d.texture_forts = w.get_or("texture_forts", std::string("")); + d.projectile_texture_forts = w.get_or("projectile_texture_forts", std::string("")); return d; } } // namespace @@ -213,6 +216,7 @@ DeviceDef read_device(const sol::table& d) { v.cost_metal = d.get_or("cost_metal", 0.0f); v.cost_energy = d.get_or("cost_energy", 0.0f); v.texture = d.get_or("texture", std::string("")); + v.texture_forts = d.get_or("texture_forts", std::string("")); sol::optional<sol::table> col = d["color"]; v.r = col ? col->get_or(1, 0.8f) : 0.8f; v.g = col ? col->get_or(2, 0.8f) : 0.8f; |
