mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
38 lines
805 B
C++
38 lines
805 B
C++
#pragma once
|
|
|
|
#include "V8Tree/Service.h"
|
|
#include "V8Tree/Instance.h"
|
|
#include "Util/Color.h"
|
|
#include "Util/BrickColor.h"
|
|
|
|
|
|
namespace RBX {
|
|
|
|
extern const char *const sTeam;
|
|
class Team
|
|
: public DescribedCreatable<Team, Instance, sTeam>
|
|
{
|
|
protected:
|
|
int score;
|
|
BrickColor color;
|
|
bool autoAssignable;
|
|
bool autoColorCharacters;
|
|
|
|
public:
|
|
Team();
|
|
~Team();
|
|
|
|
int getScore() const;
|
|
void setScore(int score);
|
|
BrickColor getTeamColor() const;
|
|
void setTeamColor(BrickColor color);
|
|
bool getAutoAssignable() const;
|
|
void setAutoAssignable(bool autoAssign);
|
|
|
|
static Reflection::BoundProp<bool> prop_AutoColorCharacters;
|
|
protected:
|
|
/* override */ bool askSetParent(const Instance* parent) const;
|
|
/* override */ bool askAddChild(const Instance* instance) const {return true;}
|
|
|
|
};
|
|
} |