Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Narishma
on Sept 18, 2023
|
parent
|
context
|
favorite
| on:
The anatomy of a Godot API call
Presumably because GDScript doesn't support structs.
TazeTSchnitzel
on Sept 18, 2023
|
next
[–]
It does support classes with strongly typed fields, though, which are the next best thing. It's just a poorly designed API, it's not a reflection of language limitations.
harpiaharpyja
on Sept 18, 2023
|
parent
|
next
[–]
Exactly. Why can't it return a RaycastResult or whatever.
nextaccountic
on Sept 18, 2023
|
prev
|
next
[–]
In this sense it's like Lua right? And people don't complain (much) about using Lua in gamedev
krapp
on Sept 18, 2023
|
prev
[–]
If you want "structs" in GDScript, use Resources.
I know it's not the same thing at all but it's as close as you're going to get.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: