Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some cbse related cleanups #1094

Merged
merged 12 commits into from
Nov 7, 2018
Merged

some cbse related cleanups #1094

merged 12 commits into from
Nov 7, 2018

Conversation

t4im
Copy link
Member

@t4im t4im commented Nov 2, 2018

Foremost it removes/replaces several CBSE.h includes so that changes to entities or component headers won't result in a full rebuild anymore. There's still a lot build then, but less now.

While working on some entity migrations, it started to become a bit annoying that a lot of change-unrelated things had to be rebuild due to the include.

This PR does not contain any migrations yet in light of the upcoming release, but some other cleanups like unused field removal.

…ng Utility.cpp as well)

External facades to CBSE entities and components in a dedicated Entites.cpp
This aims to reduce (re)compilation times by avoiding CBSE.h includes in
code that isn't instantiating entities.
Instead of CBSE.h the code can simply include Entities.h and use the forward declarations and facades there for simple lookups.
This will also be a place for general migration help functions.
@t4im t4im changed the title some csbe related cleanups some cbse related cleanups Nov 2, 2018
src/sgame/components/TurretComponent.cpp Outdated Show resolved Hide resolved
src/sgame/Entities.cpp Outdated Show resolved Hide resolved
src/sgame/Entities.h Outdated Show resolved Hide resolved
src/sgame/Entities.h Outdated Show resolved Hide resolved
src/sgame/Entities.h Show resolved Hide resolved
src/sgame/sg_missile.cpp Show resolved Hide resolved
src.cmake Show resolved Hide resolved
@slipher
Copy link
Contributor

slipher commented Nov 3, 2018

Good stuff

@Viech
Copy link
Member

Viech commented Nov 5, 2018

LGTM ❤️

@t4im t4im merged commit 817d252 into Unvanquished:master Nov 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants