Skip to content

Commit

Permalink
Add player teams
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyuu17 committed Jul 4, 2024
1 parent 21dbca5 commit 9b81c03
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/SWBF2/Native/SWBF2.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,40 @@ namespace SWBF2::Native

class SWBF2 {
public:
enum TeamClassType : uint8_t
{
SOLDIER,
ASSAULT,
ENGINEER,
SNIPER,
OFFICIAL,
SPECIAL
};

struct TeamClass
{
std::string model;
uint8_t min;
uint8_t max;
};

struct Team
{
uint8_t team;
uint8_t units;
uint8_t reinforcements;
std::unordered_map<TeamClassType, TeamClass> m_classes;
};

static SkyDome m_skyDome;

static std::string m_curMapName;
static LevelGamemode m_curLevel;

static Terrain m_tern;

static std::unordered_map<uint8_t, Team> m_teams;

static std::unordered_map<LevelGamemode, Level> m_levels;
static std::unordered_map<std::string, World> m_worlds;
static std::unordered_map<std::string, Light> m_lights;
Expand Down

0 comments on commit 9b81c03

Please sign in to comment.