16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 01:59:19 +02:00

vehicle visualization config file parameters, vehicle attachments support, axle clatter fix, disabled vehicles smoke fix

This commit is contained in:
tmj-fstate
2019-09-25 18:18:33 +02:00
parent 4e0975f387
commit 41834c4d4c
10 changed files with 167 additions and 92 deletions

View File

@@ -50,20 +50,24 @@ class cParser //: public std::stringstream
bool
expectToken( std::string const &Value ) {
return readToken() == Value; };
inline
bool
eof() {
return mStream->eof(); };
inline
bool
ok() {
return !mStream->fail(); };
return ( !mStream->fail() ); };
cParser &
autoclear( bool const Autoclear );
inline
bool
autoclear() const {
return m_autoclear; }
bool
getTokens( unsigned int Count = 1, bool ToLower = true, char const *Break = "\n\r\t ;" );
// returns next incoming token, if any, without removing it from the set
inline
std::string
peek() const {
return (