| 499 | } |
| 500 | |
| 501 | void GDScriptLanguage::get_public_constants(List<Pair<String, Variant>> *p_constants) const { |
| 502 | Pair<String, Variant> pi; |
| 503 | pi.first = "PI"; |
| 504 | pi.second = Math::PI; |
| 505 | p_constants->push_back(pi); |
| 506 | |
| 507 | Pair<String, Variant> tau; |
| 508 | tau.first = "TAU"; |
| 509 | tau.second = Math::TAU; |
| 510 | p_constants->push_back(tau); |
| 511 | |
| 512 | Pair<String, Variant> infinity; |
| 513 | infinity.first = "INF"; |
| 514 | infinity.second = Math::INF; |
| 515 | p_constants->push_back(infinity); |
| 516 | |
| 517 | Pair<String, Variant> nan; |
| 518 | nan.first = "NAN"; |
| 519 | nan.second = Math::NaN; |
| 520 | p_constants->push_back(nan); |
| 521 | } |
| 522 | |
| 523 | void GDScriptLanguage::get_public_annotations(List<MethodInfo> *p_annotations) const { |
| 524 | GDScriptParser parser; |