add Command::Unit to describe similar fields between main command and motions

This commit is contained in:
josh committed 2017-10-24 22:11:57 -04:00
1 parent a07e9eb46b
commit bbc1c8d153
3 files changed
+14 -18

No files matched your search

+12 -6
View File
@@ -33,18 +33,24 @@ public:
BACK_UP_TO_CHAR,
BACK_ON_TO_CHAR,
};
};
struct Unit
{
uint32_t id;
uint32_t count;
uint32_t following_char;
Unit()
{
id = 0u;
count = 0u;
following_char = 0u;
}
};
uint32_t id;
uint32_t count;
uint32_t following_char;
Motion motion;
Command();
Unit main;
Unit motion;
};
#endif