mirror of
https://github.com/godotengine/godot.git
synced 2025-02-05 21:41:47 +08:00
Move the former "spawnables" functions to a dedicated MultiplayerReplicator class. Support custom overrides in replicator. Spawn/despawn messages can now contain a state. The state can be automatically encoded/decoded by passing the desired object properties to `spawnable_config`. You can use script properties to optimize the state representation. 2 Callables can be also specified to completely override the default implementation for sending and receiving the spawn/despawn event. (9 bytes overhead, and there's room for improvement here). When using a custom implementation `spawn` and `despawn` can be called with any Object, `send_spawn`/`send_despawn` can receive any Variant as a state, and the path is not required. Two new functions, `spawn` and `despawn`, convey the implementation independent method for requesting a spawn/despawn of an Object, while `send_spawn` and `send_despawn` represent the more low-level send event for a Variant to be used by the custom implementations. |
||
---|---|---|
.. | ||
compression.cpp | ||
compression.h | ||
config_file.cpp | ||
config_file.h | ||
dir_access.cpp | ||
dir_access.h | ||
dtls_server.cpp | ||
dtls_server.h | ||
file_access_compressed.cpp | ||
file_access_compressed.h | ||
file_access_encrypted.cpp | ||
file_access_encrypted.h | ||
file_access_memory.cpp | ||
file_access_memory.h | ||
file_access_network.cpp | ||
file_access_network.h | ||
file_access_pack.cpp | ||
file_access_pack.h | ||
file_access_zip.cpp | ||
file_access_zip.h | ||
file_access.cpp | ||
file_access.h | ||
http_client_tcp.cpp | ||
http_client_tcp.h | ||
http_client.cpp | ||
http_client.h | ||
image_loader.cpp | ||
image_loader.h | ||
image.cpp | ||
image.h | ||
ip_address.cpp | ||
ip_address.h | ||
ip.cpp | ||
ip.h | ||
json.cpp | ||
json.h | ||
logger.cpp | ||
logger.h | ||
marshalls.cpp | ||
marshalls.h | ||
multiplayer_api.cpp | ||
multiplayer_api.h | ||
multiplayer_peer.cpp | ||
multiplayer_peer.h | ||
multiplayer_replicator.cpp | ||
multiplayer_replicator.h | ||
net_socket.cpp | ||
net_socket.h | ||
packed_data_container.cpp | ||
packed_data_container.h | ||
packet_peer_dtls.cpp | ||
packet_peer_dtls.h | ||
packet_peer_udp.cpp | ||
packet_peer_udp.h | ||
packet_peer.cpp | ||
packet_peer.h | ||
pck_packer.cpp | ||
pck_packer.h | ||
resource_format_binary.cpp | ||
resource_format_binary.h | ||
resource_importer.cpp | ||
resource_importer.h | ||
resource_loader.cpp | ||
resource_loader.h | ||
resource_saver.cpp | ||
resource_saver.h | ||
resource_uid.cpp | ||
resource_uid.h | ||
resource.cpp | ||
resource.h | ||
SCsub | ||
stream_peer_ssl.cpp | ||
stream_peer_ssl.h | ||
stream_peer_tcp.cpp | ||
stream_peer_tcp.h | ||
stream_peer.cpp | ||
stream_peer.h | ||
tcp_server.cpp | ||
tcp_server.h | ||
translation_loader_po.cpp | ||
translation_loader_po.h | ||
udp_server.cpp | ||
udp_server.h | ||
xml_parser.cpp | ||
xml_parser.h | ||
zip_io.cpp | ||
zip_io.h |