Formspec: Unify argument checks (#11851)

This commit is contained in:
SmallJoker 2021-12-29 23:58:26 +01:00 committed by GitHub
parent 0ea8df4d64
commit 14c7fae378
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1235 additions and 1303 deletions

File diff suppressed because it is too large Load Diff

View File

@ -279,6 +279,8 @@ protected:
v2s32 getElementBasePos(const std::vector<std::string> *v_pos);
v2s32 getRealCoordinateBasePos(const std::vector<std::string> &v_pos);
v2s32 getRealCoordinateGeometry(const std::vector<std::string> &v_geom);
bool precheckElement(const std::string &name, const std::string &element,
size_t args_min, size_t args_max, std::vector<std::string> &parts);
std::unordered_map<std::string, std::vector<StyleSpec>> theme_by_type;
std::unordered_map<std::string, std::vector<StyleSpec>> theme_by_name;