Skip to content

Conversation

@addictgamer
Copy link
Collaborator

No description provided.

@addictgamer addictgamer requested a review from SheridanR January 11, 2019 09:30
@addictgamer addictgamer changed the title Sol2 merge Changed script engine to use Sol2 instead of LuaBridge Jan 11, 2019
@addictgamer addictgamer changed the title Changed script engine to use Sol2 instead of LuaBridge Change script engine to use Sol2 instead of LuaBridge Jan 11, 2019
Copy link
Collaborator

@SheridanR SheridanR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really impressive changes! I'd much prefer if sol.hpp could go in GameLibs though because it's just a dependency, not original code. We should probably change from using a GameLibs.zip to an external libs folder of some kind (next to the src folder)

}

//These functions are not in the script.cpp file since they drastically increase compile time and memory usage due to heavy template usage.
void Script::exposeBBox() {
Copy link
Collaborator

@SheridanR SheridanR Jan 13, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine for a first pass but if these expose functions could be members of their respective classes (ie BBox::exposeToScript() instead of Script::exposeBBox()) it would be way better.

void setPressed(const bool _pressed) { reallyPressed = _pressed; }

template<typename T>
void addParam(T param)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is way better, kudos.

@addictgamer
Copy link
Collaborator Author

Really impressive changes! I'd much prefer if sol.hpp could go in GameLibs though because it's just a dependency, not original code. We should probably change from using a GameLibs.zip to an external libs folder of some kind (next to the src folder)

We can do that, I was honestly just too lazy to add it to CMake ;P

addictgamer and others added 4 commits January 19, 2019 01:21
Signed-off-by: SheridanR <sheridan.rathbun@gmail.com>
Conflicts:
	src/Entity.cpp
	vs.2017/spacepunk/spacepunk.vcxproj
Signed-off-by: SheridanR <sheridan.rathbun@gmail.com>
@SheridanR SheridanR force-pushed the master branch 2 times, most recently from d0659e9 to 3d3cfe6 Compare November 16, 2019 20:35
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