-
Notifications
You must be signed in to change notification settings - Fork 17
Players and misc. stuff #114
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
base: master
Are you sure you want to change the base?
Conversation
|
|
||
| public: | ||
| static Context& current(); | ||
| static __declspec(noinline) bool isInRole(Identities identity, Permissions permission); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this noinline?
It won't inline regardless, since its defined in a C++ file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SecurityContext::requirePermission does not inline this function in RBXGS although it was inlined for me when I was matching this function.
Functions defined in the source file can STILL be inlined, see BlockBlockContact::computeIsColliding overloads
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SecurityContext::requirePermission does not inline this function in RBXGS although it was inlined for me when I was matching this function.
How? requirePermission is defined in the header, and isInRole is defined in the C++ file. It should not inline.
Functions defined in the source file can STILL be inlined, see BlockBlockContact::computeIsColliding overloads
Shouldn't be possible.
Client/Network/Player.cpp
Outdated
| } | ||
| } | ||
|
|
||
| TimerService* tService = ServiceProvider::create<TimerService>(this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just use its full name
|
|
||
| namespace RBX | ||
| template<class Class> | ||
| class PluginInterfaceAdapter : public PluginInterface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely not. Players.h is in the public includes directory, meaning that App can include this file. App does not have RakNet in its includes directory so this will not work.
| #include "SuperSafeChanged.h" | ||
| #include "v8tree/Service.h" | ||
| #include "v8datamodel/ModelInstance.h" | ||
| #include "Client.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not in the public includes directory, so this will not work.
| #include "Network/Player.h" | ||
| #include "Network/SuperSafeChanged.h" | ||
| #include "Player.h" | ||
| #include "Streaming.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not in the public includes directory, so this will not work.
| #pragma once | ||
| #include "Network/Player.h" | ||
| #include "Network/SuperSafeChanged.h" | ||
| #include "Player.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't work
|
I moved the declarations and includes noted in the reviews into the source files, should be resolved but check again |
No description provided.