parser recognizes race trigger brushes
This commit is contained in:
parent
24d011a289
commit
5d1d46e2cf
@ -8,9 +8,13 @@ using namespace std;
|
|||||||
bool is_ebrush(const std::vector<std::string> &input) {
|
bool is_ebrush(const std::vector<std::string> &input) {
|
||||||
#define KEYWORD_ENTBRUSH1 "type Teleporter"
|
#define KEYWORD_ENTBRUSH1 "type Teleporter"
|
||||||
#define KEYWORD_ENTBRUSH2 "type JumpPad"
|
#define KEYWORD_ENTBRUSH2 "type JumpPad"
|
||||||
|
#define KEYWORD_ENTBRUSH3 "type RaceStart"
|
||||||
|
#define KEYWORD_ENTBRUSH4 "type RaceFinish"
|
||||||
for (const string &str : input) {
|
for (const string &str : input) {
|
||||||
if (str.find(KEYWORD_ENTBRUSH1) != string::npos ||
|
if (str.find(KEYWORD_ENTBRUSH1) != string::npos ||
|
||||||
str.find(KEYWORD_ENTBRUSH2) != string::npos) {
|
str.find(KEYWORD_ENTBRUSH2) != string::npos ||
|
||||||
|
str.find(KEYWORD_ENTBRUSH3) != string::npos ||
|
||||||
|
str.find(KEYWORD_ENTBRUSH4) != string::npos) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user