Separate includes into sections and alphabetize them

Okay, so basically here's the include layout that this game now
consistently uses:

[The "main" header file, if any (e.g. Graphics.h for Graphics.cpp)]
[blank line]
[All system includes, such as tinyxml2/physfs/utfcpp/SDL]
[blank line]
[All project includes, such as Game.h/Entity.h/etc.]

And if applicable, another blank line, and then some special-case
include screwy stuff (take a look at editor.cpp or FileSystemUtils.cpp,
for example, they have ifdefs and defines with their includes).
This commit is contained in:
Misa
2020-07-19 12:43:29 -07:00
committed by Ethan Lee
parent b108e28c5a
commit 52f7a587fe
35 changed files with 124 additions and 159 deletions

View File

@@ -1,27 +1,22 @@
#include "Enums.h"
#include "editor.h"
#include "Game.h"
#include "Graphics.h"
#include "Entity.h"
#include "Map.h"
#include "Music.h"
#include "Script.h"
#include "UtilityClass.h"
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sstream>
#include "FileSystemUtils.h"
#include <tinyxml2.h>
#include "Network.h"
#include "editor.h"
#include "Entity.h"
#include "Enums.h"
#include "FileSystemUtils.h"
#include "Graphics.h"
#include "MakeAndPlay.h"
#include "Map.h"
#include "Music.h"
#include "Network.h"
#include "Script.h"
#include "UtilityClass.h"
// lol, Win32 -flibit
#ifdef _WIN32