Skip to content

Commit

Permalink
configify static entity variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya246 committed Apr 24, 2023
1 parent 6ad50f7 commit b281126
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion include/globals.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,27 @@ inline std::map<std::string, Var> vars {
{"gen_maxMoonDistance", {Double, &gen_maxMoonDistance}},
{"gen_moonFactor", {Double, &gen_moonFactor}},
{"gen_starMass", {Double, &gen_starMass}},
{"gen_starRadius", {Double, &gen_starRadius}}};
{"gen_starRadius", {Double, &gen_starRadius}},

{"projectile_mass", {Double, &Projectile::mass}},
{"projectile_accel", {Double, &Projectile::accel}},
{"projectile_rotateSpeed", {Double, &Projectile::rotateSpeed}},
{"projectile_maxThrustAngle", {Double, &Projectile::maxThrustAngle}},
{"projectile_easeInFactor", {Double, &Projectile::easeInFactor}},
{"projectile_startingFuel", {Double, &Projectile::startingFuel}},
{"triangle_mass", {Double, &Triangle::mass}},
{"triangle_accel", {Double, &Triangle::accel}},
{"triangle_rotateSlowSpeedMult", {Double, &Triangle::rotateSlowSpeedMult}},
{"triangle_rotateSpeed", {Double, &Triangle::rotateSpeed}},
{"triangle_boostCooldown", {Double, &Triangle::boostCooldown}},
{"triangle_boostStrength", {Double, &Triangle::boostStrength}},
{"triangle_reload", {Double, &Triangle::reload}},
{"triangle_shootPower", {Double, &Triangle::shootPower}},
{"triangle_hyperboostStrength", {Double, &Triangle::hyperboostStrength}},
{"triangle_hyperboostTime", {Double, &Triangle::hyperboostTime}},
{"triangle_hyperboostRotateSpeed", {Double, &Triangle::hyperboostRotateSpeed}},
{"triangle_afterburnStrength", {Double, &Triangle::afterburnStrength}},
{"triangle_minAfterburn", {Double, &Triangle::minAfterburn}}};

inline std::vector<CelestialBody*> stars;
inline Entity* trajectoryRef = nullptr;
Expand Down

0 comments on commit b281126

Please sign in to comment.