Rename some variables

- Add order for loading Components
- Enforce all components have Entity* in the first argument
This commit is contained in:
David Markowitz
2023-06-09 02:46:01 -07:00
parent f555ba8c25
commit 6f057204be
49 changed files with 634 additions and 584 deletions

View File

@@ -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);
}