From 7d71827c25ff1ab47c03aaa26f63a9a754b3d549 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Sun, 3 Jul 2022 11:24:05 -0400 Subject: Condensed solar system csv files into one. Add argument parser for help and different systems --- include/system.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/system.hpp') diff --git a/include/system.hpp b/include/system.hpp index 9de10bc..c907f1a 100644 --- a/include/system.hpp +++ b/include/system.hpp @@ -11,19 +11,19 @@ class System { private: friend class SystemView; struct SystemTreeNode { - unsigned entityId; + int entityId; std::list children; }; SystemTreeNode m_systemTree; ecs::EntityMan m_entityMan; - ecs::Entity &addOrbital(const std::string &name, const std::string &orbitingName, unsigned long a, double e, unit::Mass m, unsigned r, double M, double w); + void addOrbital(const std::string &name, const std::string &orbitingName, unsigned long a, double e, unit::Mass m, unsigned r, double M, double w); void tickOrbitals(unit::Time time); SystemTreeNode *traverseSystemTree(SystemTreeNode &node, const std::string &name); SystemTreeNode *getNode(const std::string &name); public: - System(); + System(const std::string &name); void update(); -- cgit v1.2.1