mirror of
https://github.com/Relintai/pandemonium_engine_minimal.git
synced 2024-12-21 16:56:50 +01:00
Fix property related errors.
This commit is contained in:
parent
210d36e75d
commit
3e4e95f2e6
@ -770,7 +770,6 @@ void NetworkedMultiplayerENet::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("set_server_relay_enabled", "enabled"), &NetworkedMultiplayerENet::set_server_relay_enabled);
|
||||
ClassDB::bind_method(D_METHOD("is_server_relay_enabled"), &NetworkedMultiplayerENet::is_server_relay_enabled);
|
||||
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "compression_mode", PROPERTY_HINT_ENUM, "None,Range Coder,FastLZ,ZLib,ZStd"), "set_compression_mode", "get_compression_mode");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "transfer_channel"), "set_transfer_channel", "get_transfer_channel");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "channel_count"), "set_channel_count", "get_channel_count");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "always_ordered"), "set_always_ordered", "is_always_ordered");
|
||||
|
@ -1802,7 +1802,6 @@ void SceneTree::_bind_methods() {
|
||||
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "root", PROPERTY_HINT_RESOURCE_TYPE, "Node", 0), "", "get_root");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "multiplayer", PROPERTY_HINT_RESOURCE_TYPE, "MultiplayerAPI", 0), "set_multiplayer", "get_multiplayer");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "multiplayer_poll"), "set_multiplayer_poll_enabled", "is_multiplayer_poll_enabled");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "physics_interpolation"), "set_physics_interpolation_enabled", "is_physics_interpolation_enabled");
|
||||
|
||||
ADD_SIGNAL(MethodInfo("tree_changed"));
|
||||
ADD_SIGNAL(MethodInfo("node_added", PropertyInfo(Variant::OBJECT, "node", PROPERTY_HINT_RESOURCE_TYPE, "Node")));
|
||||
|
@ -2793,7 +2793,6 @@ void Viewport::_bind_methods() {
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "render_target_update_mode", PROPERTY_HINT_ENUM, "Disabled,Once,When Visible,Always"), "set_update_mode", "get_update_mode");
|
||||
ADD_GROUP("Audio Listener", "audio_listener_");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "audio_listener_enable_2d"), "set_as_audio_listener_2d", "is_audio_listener_2d");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "audio_listener_enable_3d"), "set_as_audio_listener", "is_audio_listener");
|
||||
ADD_GROUP("Physics", "physics_");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "physics_object_picking"), "set_physics_object_picking", "get_physics_object_picking");
|
||||
ADD_GROUP("GUI", "gui_");
|
||||
|
@ -351,7 +351,6 @@ void World2D::_bind_methods() {
|
||||
|
||||
ADD_PROPERTY(PropertyInfo(Variant::RID, "canvas", PROPERTY_HINT_NONE, "", 0), "", "get_canvas");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::RID, "space", PROPERTY_HINT_NONE, "", 0), "", "get_space");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::RID, "navigation_map", PROPERTY_HINT_NONE, "", 0), "", "get_navigation_map");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "direct_space_state", PROPERTY_HINT_RESOURCE_TYPE, "Physics2DDirectSpaceState", 0), "", "get_direct_space_state");
|
||||
}
|
||||
|
||||
|
@ -249,7 +249,6 @@ public:
|
||||
// Interpolation
|
||||
void tick();
|
||||
void update_interpolation_tick(bool p_process = true);
|
||||
void set_physics_interpolation_enabled(bool p_enabled) { _interpolation_data.interpolation_enabled = p_enabled; }
|
||||
|
||||
struct InterpolationData {
|
||||
LocalVector<RID> canvas_item_transform_update_lists[2];
|
||||
|
@ -129,10 +129,6 @@ void RenderingServerRaster::draw(bool p_swap_buffers, double frame_step) {
|
||||
void RenderingServerRaster::sync() {
|
||||
}
|
||||
|
||||
void RenderingServerRaster::set_physics_interpolation_enabled(bool p_enabled) {
|
||||
RSG::canvas->set_physics_interpolation_enabled(p_enabled);
|
||||
}
|
||||
|
||||
void RenderingServerRaster::tick() {
|
||||
RSG::canvas->tick();
|
||||
}
|
||||
|
@ -408,8 +408,6 @@ public:
|
||||
virtual void init();
|
||||
virtual void finish();
|
||||
|
||||
virtual void set_physics_interpolation_enabled(bool p_enabled);
|
||||
|
||||
/* STATUS INFORMATION */
|
||||
|
||||
virtual uint64_t get_render_info(RenderInfo p_info);
|
||||
|
@ -73,14 +73,6 @@ void RenderingServerWrapMT::thread_loop() {
|
||||
|
||||
/* EVENT QUEUING */
|
||||
|
||||
void RenderingServerWrapMT::set_physics_interpolation_enabled(bool p_enabled) {
|
||||
if (Thread::get_caller_id() != server_thread) {
|
||||
command_queue.push(rendering_server, &RenderingServer::set_physics_interpolation_enabled, p_enabled);
|
||||
} else {
|
||||
rendering_server->set_physics_interpolation_enabled(p_enabled);
|
||||
}
|
||||
}
|
||||
|
||||
void RenderingServerWrapMT::tick() {
|
||||
if (Thread::get_caller_id() != server_thread) {
|
||||
command_queue.push(rendering_server, &RenderingServer::tick);
|
||||
|
@ -331,7 +331,6 @@ public:
|
||||
virtual void draw(bool p_swap_buffers, double frame_step);
|
||||
virtual void sync();
|
||||
FUNC1RC(bool, has_changed, ChangedPriority)
|
||||
virtual void set_physics_interpolation_enabled(bool p_enabled);
|
||||
|
||||
/* RENDER INFO */
|
||||
|
||||
|
@ -465,10 +465,6 @@ public:
|
||||
|
||||
virtual void viewport_set_debug_draw(RID p_viewport, ViewportDebugDraw p_draw) = 0;
|
||||
|
||||
/* INTERPOLATION API */
|
||||
|
||||
virtual void set_physics_interpolation_enabled(bool p_enabled) = 0;
|
||||
|
||||
/* INSTANCING API */
|
||||
|
||||
enum InstanceType {
|
||||
|
Loading…
Reference in New Issue
Block a user