{{ $view := . -}} // Copyright © 2019 - 2020 Oscar Campos // Copyright © 2017 - William Edwards // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #include "gdnative.gen.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include /*------------------------------------------------------------------------------ // This file was autogenerated by PimPam GDNative-Go binding tools // Please do not modify this file, any change will be lost //----------------------------------------------------------------------------*/ {{/* Define the Core API */}} /* GDNative {{ $view.API.Type }} {{ $view.API.Version.Major }}.{{ $view.API.Version.Minor }} */ {{ range $i, $api := $view.API.API -}} {{ $api.ReturnType }} go_{{ $api.Name }}(godot_gdnative_{{ $view.StructType }}_api_struct * p_api{{ if ($view.HasArgs $api.Arguments) }}, {{ end }}{{ range $j, $arg := $api.Arguments }}{{ index $arg 0 }} {{ index $arg 1 }}{{ if ($view.NotLastElement $j $api.Arguments) }}, {{ end }}{{ end }}) { {{ if ($view.NotVoid $api.ReturnType) }}return {{ end }}p_api->{{ $api.Name }}({{ range $j, $arg := $api.Arguments }}{{ index $arg 1 }}{{ if ($view.NotLastElement $j $api.Arguments) }}, {{ end }}{{ end }}); } {{ end -}}