| 161 // "float" is for now just int. |
161 // "float" is for now just int. |
| 162 // TODO: find out how BotScript floats work |
162 // TODO: find out how BotScript floats work |
| 163 // (are they real floats or fixed? how are they |
163 // (are they real floats or fixed? how are they |
| 164 // stored?) and add proper floating point support. |
164 // stored?) and add proper floating point support. |
| 165 // NOTE: Also, shouldn't use RETURNVAL for data types.. |
165 // NOTE: Also, shouldn't use RETURNVAL for data types.. |
| 166 t.tolower(); |
166 t = t.tolower(); |
| 167 return !t.compare ("int") ? RETURNVAL_INT : |
167 return !t.compare ("int") ? RETURNVAL_INT : |
| 168 !t.compare ("float") ? RETURNVAL_INT : |
168 !t.compare ("float") ? RETURNVAL_INT : |
| 169 !t.compare ("str") ? RETURNVAL_STRING : |
169 !t.compare ("str") ? RETURNVAL_STRING : |
| 170 !t.compare ("void") ? RETURNVAL_VOID : |
170 !t.compare ("void") ? RETURNVAL_VOID : |
| 171 !t.compare ("bool") ? RETURNVAL_BOOLEAN : -1; |
171 !t.compare ("bool") ? RETURNVAL_BOOLEAN : -1; |