Comments (3)
Godot uses 64-bit types for all scalar types internally. This means that, by default, INT
means long
in C#. Godot can add metadata to method's when the type is not 64-bit, for example:
METADATA_INT_IS_INT8
means that the integer type should besbyte
in C#.METADATA_INT_IS_UINT8
means that the integer type should bebyte
in C#.METADATA_INT_IS_INT16
means that the integer type should beshort
in C#.METADATA_INT_IS_UINT16
means that the integer type should beushort
in C#.METADATA_INT_IS_INT32
means that the integer type should beint
in C#.METADATA_INT_IS_UINT32
means that the integer type should beuint
in C#.METADATA_INT_IS_INT64
means that the integer type should belong
in C# (this is the default when there's no metadata).METADATA_INT_IS_UINT64
means that the integer type should beulong
in C#.
Unfortunately, AFAIK signals don't have a mechanism to register metadata so their parameters must always use the 64-bit types for scalar types (long
and double
) to ensure they always use the right type.
from godotsteam.
Thanks, @raulsntos, for dropping an egg of knowledge!
After this post and the one about Rust, I need to dig back through GodotSteam to check the types on everything since this project has been going on for many years.
from godotsteam.
Ah, another note is that SteamMultiplayerPeer is not officially a GodotSteam project. Unless you were talking about the MultiplayerPeer branch which is but needs patched a lot. I have been going through all that and writing up a list of changes to make. I didn't work on the original / current version.
from godotsteam.
Related Issues (20)
- Mono build does not have numeric values for enums HOT 5
- Getting Steam info such as username HOT 11
- Bitfield REMOTE_STORAGE_PLATFORM_ALL changes value per platform HOT 24
- Steam.InputGlyphStyle warnings when combining flags HOT 1
- How to use this GDExtension with platforms that are not supported HOT 15
- No console output when crashing because Steam is not running HOT 3
- getAllLobbyData overwrites data Dictionary HOT 6
- [multiplayer-peer] SteamMultiplayerPeer.close() doesn't properly close the peer HOT 4
- Steam Deck with own appid HOT 11
- 4.6.3 Not Working HOT 4
- All macOS builds after "macos-g421-s159-gs46" are listed as "damaged or incomplete" in macOS HOT 16
- PackedScene nodes at "res://" locations are not accessible by scripts in exported packages HOT 4
- item_created signal is not called HOT 5
- [SMP] Add network_session_failed signal HOT 2
- Game crashes when calling peer.disconnect_peer HOT 5
- Godot no longer detecing gamepad input after initialize steam HOT 2
- Double precision compiled Engine crashes when opening project HOT 6
- NetworkMessagesSessionRequest event expects a long argument instead of a ulong HOT 5
- Unable to join another lobby with SteamMultiplayerPeer after calling close(). HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from godotsteam.