Style: Replace header guards with #pragma once
This commit is contained in:
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef EDITOR_NETWORK_PROFILER_H
|
||||
#define EDITOR_NETWORK_PROFILER_H
|
||||
#pragma once
|
||||
|
||||
#include "../multiplayer_debugger.h"
|
||||
|
||||
@ -120,5 +119,3 @@ public:
|
||||
|
||||
EditorNetworkProfiler();
|
||||
};
|
||||
|
||||
#endif // EDITOR_NETWORK_PROFILER_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef MULTIPLAYER_EDITOR_PLUGIN_H
|
||||
#define MULTIPLAYER_EDITOR_PLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include "editor/plugins/editor_debugger_plugin.h"
|
||||
#include "editor/plugins/editor_plugin.h"
|
||||
@ -80,5 +79,3 @@ public:
|
||||
|
||||
MultiplayerEditorPlugin();
|
||||
};
|
||||
|
||||
#endif // MULTIPLAYER_EDITOR_PLUGIN_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef REPLICATION_EDITOR_H
|
||||
#define REPLICATION_EDITOR_H
|
||||
#pragma once
|
||||
|
||||
#include "../scene_replication_config.h"
|
||||
|
||||
@ -104,5 +103,3 @@ public:
|
||||
ReplicationEditor();
|
||||
~ReplicationEditor() {}
|
||||
};
|
||||
|
||||
#endif // REPLICATION_EDITOR_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef MULTIPLAYER_DEBUGGER_H
|
||||
#define MULTIPLAYER_DEBUGGER_H
|
||||
#pragma once
|
||||
|
||||
#include "core/debugger/engine_profiler.h"
|
||||
|
||||
@ -128,5 +127,3 @@ public:
|
||||
static void initialize();
|
||||
static void deinitialize();
|
||||
};
|
||||
|
||||
#endif // MULTIPLAYER_DEBUGGER_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef MULTIPLAYER_SPAWNER_H
|
||||
#define MULTIPLAYER_SPAWNER_H
|
||||
#pragma once
|
||||
|
||||
#include "core/templates/local_vector.h"
|
||||
#include "scene/main/node.h"
|
||||
@ -115,5 +114,3 @@ public:
|
||||
|
||||
MultiplayerSpawner() {}
|
||||
};
|
||||
|
||||
#endif // MULTIPLAYER_SPAWNER_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef MULTIPLAYER_SYNCHRONIZER_H
|
||||
#define MULTIPLAYER_SYNCHRONIZER_H
|
||||
#pragma once
|
||||
|
||||
#include "scene_replication_config.h"
|
||||
|
||||
@ -125,5 +124,3 @@ public:
|
||||
};
|
||||
|
||||
VARIANT_ENUM_CAST(MultiplayerSynchronizer::VisibilityUpdateMode);
|
||||
|
||||
#endif // MULTIPLAYER_SYNCHRONIZER_H
|
||||
|
||||
@ -28,12 +28,9 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef MULTIPLAYER_REGISTER_TYPES_H
|
||||
#define MULTIPLAYER_REGISTER_TYPES_H
|
||||
#pragma once
|
||||
|
||||
#include "modules/register_module_types.h"
|
||||
|
||||
void initialize_multiplayer_module(ModuleInitializationLevel p_level);
|
||||
void uninitialize_multiplayer_module(ModuleInitializationLevel p_level);
|
||||
|
||||
#endif // MULTIPLAYER_REGISTER_TYPES_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef SCENE_CACHE_INTERFACE_H
|
||||
#define SCENE_CACHE_INTERFACE_H
|
||||
#pragma once
|
||||
|
||||
#include "core/object/ref_counted.h"
|
||||
|
||||
@ -89,5 +88,3 @@ public:
|
||||
|
||||
SceneCacheInterface(SceneMultiplayer *p_multiplayer) { multiplayer = p_multiplayer; }
|
||||
};
|
||||
|
||||
#endif // SCENE_CACHE_INTERFACE_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef SCENE_MULTIPLAYER_H
|
||||
#define SCENE_MULTIPLAYER_H
|
||||
#pragma once
|
||||
|
||||
#include "scene_cache_interface.h"
|
||||
#include "scene_replication_interface.h"
|
||||
@ -204,5 +203,3 @@ public:
|
||||
SceneMultiplayer();
|
||||
~SceneMultiplayer();
|
||||
};
|
||||
|
||||
#endif // SCENE_MULTIPLAYER_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef SCENE_REPLICATION_CONFIG_H
|
||||
#define SCENE_REPLICATION_CONFIG_H
|
||||
#pragma once
|
||||
|
||||
#include "core/io/resource.h"
|
||||
#include "core/variant/typed_array.h"
|
||||
@ -108,5 +107,3 @@ public:
|
||||
};
|
||||
|
||||
VARIANT_ENUM_CAST(SceneReplicationConfig::ReplicationMode);
|
||||
|
||||
#endif // SCENE_REPLICATION_CONFIG_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef SCENE_REPLICATION_INTERFACE_H
|
||||
#define SCENE_REPLICATION_INTERFACE_H
|
||||
#pragma once
|
||||
|
||||
#include "multiplayer_spawner.h"
|
||||
#include "multiplayer_synchronizer.h"
|
||||
@ -151,5 +150,3 @@ public:
|
||||
multiplayer_cache = p_cache;
|
||||
}
|
||||
};
|
||||
|
||||
#endif // SCENE_REPLICATION_INTERFACE_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef SCENE_RPC_INTERFACE_H
|
||||
#define SCENE_RPC_INTERFACE_H
|
||||
#pragma once
|
||||
|
||||
#include "core/object/ref_counted.h"
|
||||
#include "scene/main/multiplayer_api.h"
|
||||
@ -110,5 +109,3 @@ public:
|
||||
multiplayer_replicator = p_replicator;
|
||||
}
|
||||
};
|
||||
|
||||
#endif // SCENE_RPC_INTERFACE_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef TEST_SCENE_MULTIPLAYER_H
|
||||
#define TEST_SCENE_MULTIPLAYER_H
|
||||
#pragma once
|
||||
|
||||
#include "tests/test_macros.h"
|
||||
#include "tests/test_utils.h"
|
||||
@ -280,5 +279,3 @@ TEST_CASE("[Multiplayer][SceneMultiplayer][SceneTree] Complete Authentication")
|
||||
}
|
||||
|
||||
} // namespace TestSceneMultiplayer
|
||||
|
||||
#endif // TEST_SCENE_MULTIPLAYER_H
|
||||
|
||||
Reference in New Issue
Block a user