model.go 629 B

123456789101112131415161718192021222324
  1. package gdnative
  2. // API is a single API definition in `gdnative_api.json`
  3. type API struct {
  4. Name string `json:"name,omitempty"`
  5. Type string `json:"type"`
  6. Version struct {
  7. Major int `json:"major"`
  8. Minor int `json:"minor"`
  9. } `json:"version"`
  10. API []struct {
  11. Name string `json:"name"`
  12. ReturnType string `json:"return_type"`
  13. Arguments [][]string `json:"arguments"`
  14. } `json:"api"`
  15. }
  16. // APIs is a structure based on `gdnative_api.json` in `godot_headers`.
  17. type APIs struct {
  18. Core API `json:"core"`
  19. Extensions []API `json:"extensions"`
  20. // Extensions map[string]API `json:"extensions"`
  21. }