mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-06 10:44:08 +00:00
Rename some variables
- Add order for loading Components - Enforce all components have Entity* in the first argument
This commit is contained in:
@@ -19,7 +19,7 @@ ScriptComponent::~ScriptComponent() {
|
||||
|
||||
void ScriptComponent::Serialize(RakNet::BitStream* outBitStream, bool bIsInitialUpdate, unsigned int& flags) {
|
||||
if (bIsInitialUpdate) {
|
||||
const auto& networkSettings = m_OwningEntity->GetNetworkSettings();
|
||||
const auto& networkSettings = m_ParentEntity->GetNetworkSettings();
|
||||
auto hasNetworkSettings = !networkSettings.empty();
|
||||
outBitStream->Write(hasNetworkSettings);
|
||||
|
||||
@@ -52,5 +52,5 @@ void ScriptComponent::SetScript(const std::string& scriptName) {
|
||||
return;
|
||||
}*/
|
||||
|
||||
m_Script = CppScripts::GetScript(m_OwningEntity, scriptName);
|
||||
m_Script = CppScripts::GetScript(m_ParentEntity, scriptName);
|
||||
}
|
||||
|
Reference in New Issue
Block a user