void EditorMode::HandleIPCWorkerStarted(StringHash eventType, VariantMap& eventData) { VariantMap startupData; SystemUI::DebugHud* debugHud = GetSubsystem<SystemUI::DebugHud>(); startupData["debugHudMode"] = debugHud ? debugHud->GetMode() : (unsigned) 0; playerBroker_->PostMessage(E_IPCINITIALIZE, startupData); SendEvent("EditorPlayerStarted"); }
void EditorMode::HandleIPCWorkerStarted(StringHash eventType, VariantMap& eventData) { LicenseSystem* licenseSystem = GetSubsystem<LicenseSystem>(); VariantMap startupData; SystemUI::DebugHud* debugHud = GetSubsystem<SystemUI::DebugHud>(); // BEGIN LICENSE MANAGEMENT startupData["license3D"] = licenseSystem->GetLicenseModule3D(); // END LICENSE MANAGEMENT startupData["debugHudMode"] = debugHud ? debugHud->GetMode() : (unsigned) 0; playerBroker_->PostMessage(E_IPCINITIALIZE, startupData); SendEvent(E_EDITORPLAYERSTARTED); playerEnabled_ = true; }