oniksan / godobuf

A Google Protobuf implementation for Godot / GDScript
BSD 3-Clause "New" or "Revised" License
260 stars 36 forks source link

feature: Prefix type names #43

Open AndrewAPrice opened 6 months ago

AndrewAPrice commented 6 months ago

GDScript doesn't support namespaces, and so I'm running into a situation where proto messages can't be called the same thing as GDScript types.

For example, a serialized "Enemy" message vs. a Godot node type named "Enemy".

It would be nice if in the Godobuf importer we could set a name prefix, for example "Proto", so message Enemy is translated to GDScript as ProtoEnemy.