mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Improve item serialization
This commit is contained in:
parent
564c3a9c96
commit
8dd3622c6d
4 changed files with 61 additions and 28 deletions
13
src/strfnd.h
13
src/strfnd.h
|
@ -65,6 +65,19 @@ public:
|
|||
//std::cout<<"palautus=\""<<palautus<<"\""<<std::endl;
|
||||
return palautus;
|
||||
}
|
||||
void skip_over(std::string chars){
|
||||
while(p < tek.size()){
|
||||
bool is = false;
|
||||
for(unsigned int i=0; i<chars.size(); i++){
|
||||
if(chars[i] == tek[p]){
|
||||
is = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(!is) break;
|
||||
p++;
|
||||
}
|
||||
}
|
||||
bool atend(){
|
||||
if(p>=tek.size()) return true;
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue