From 6bda371baac905a9b9517cd021baf43111e8abf5 Mon Sep 17 00:00:00 2001 From: Brajan Bartoszewicz Date: Mon, 26 May 2025 17:04:33 +0200 Subject: [PATCH] fix? --- Editor/Build.meta | 0 Editor/Build/BuildVersionBumper.cs | 142 ++++----- Editor/Build/BuildVersionBumper.cs.meta | 0 Editor/CommonEditorActions.cs | 74 ++--- Editor/CommonEditorActions.cs.meta | 0 Editor/PropertyDrawers.meta | 0 Editor/PropertyDrawers/CVarDrawer.cs | 0 Editor/PropertyDrawers/CVarDrawer.cs.meta | 0 .../PropertyDrawers/ConstsPropertyDrawer.cs | 74 ++--- .../ConstsPropertyDrawer.cs.meta | 0 .../PropertyDrawers/SerializableGuidDrawer.cs | 0 .../SerializableGuidDrawer.cs.meta | 0 Editor/PropertyDrawers/ValueRangeDrawer.cs | 0 .../PropertyDrawers/ValueRangeDrawer.cs.meta | 0 Editor/REditorConsts.cs | 12 +- Editor/REditorConsts.cs.meta | 0 Editor/RebootKitEditor.asmdef | 0 Editor/RebootKitEditor.asmdef.meta | 0 Editor/RebootWindow.meta | 0 Editor/RebootWindow/ConfigVarsView.cs | 208 ++++++------- Editor/RebootWindow/ConfigVarsView.cs.meta | 0 Editor/RebootWindow/GameServicesView.cs | 208 ++++++------- Editor/RebootWindow/GameServicesView.cs.meta | 0 Editor/RebootWindow/HomeView.cs | 250 +++++++-------- Editor/RebootWindow/HomeView.cs.meta | 0 Editor/RebootWindow/RebootEditorWindow.cs | 150 ++++----- .../RebootWindow/RebootEditorWindow.cs.meta | 0 Editor/RebootWindow/TabView.cs | 252 +++++++-------- Editor/RebootWindow/TabView.cs.meta | 0 Editor/RebootWindow/WorldsView.cs | 210 ++++++------- Editor/RebootWindow/WorldsView.cs.meta | 0 Editor/Utils.meta | 0 Editor/Utils/AssetDatabaseEx.cs | 32 +- Editor/Utils/AssetDatabaseEx.cs.meta | 0 .../Utils/CVarSerializedPropertiesFinder.cs | 0 .../CVarSerializedPropertiesFinder.cs.meta | 0 Editor/VisualElements.meta | 0 Editor/VisualElements/CVarPropertyField.cs | 0 .../VisualElements/CVarPropertyField.cs.meta | 0 Runtime/Engine.meta | 0 Runtime/Engine/Code.meta | 0 Runtime/Engine/Code/Components.meta | 0 .../Engine/Code/Components/CopyTransform.cs | 101 +++--- .../Code/Components/CopyTransform.cs.meta | 0 Runtime/Engine/Code/EngineConfigAsset.cs | 0 Runtime/Engine/Code/EngineConfigAsset.cs.meta | 0 .../Engine/Code/EngineCoreServicesAsset.cs | 2 - .../Code/EngineCoreServicesAsset.cs.meta | 0 Runtime/Engine/Code/Extensions.meta | 0 Runtime/Engine/Code/Extensions/ColorEx.cs | 0 .../Engine/Code/Extensions/ColorEx.cs.meta | 0 .../Engine/Code/Extensions/GameObjectEx.cs | 0 .../Code/Extensions/GameObjectEx.cs.meta | 0 Runtime/Engine/Code/Extensions/LayerMaskEx.cs | 0 .../Code/Extensions/LayerMaskEx.cs.meta | 0 Runtime/Engine/Code/Extensions/ListEx.cs | 0 Runtime/Engine/Code/Extensions/ListEx.cs.meta | 0 Runtime/Engine/Code/Extensions/TransformEx.cs | 0 .../Code/Extensions/TransformEx.cs.meta | 0 Runtime/Engine/Code/Extensions/Vector3Ex.cs | 0 .../Engine/Code/Extensions/Vector3Ex.cs.meta | 0 Runtime/Engine/Code/Foundation.meta | 0 Runtime/Engine/Code/Foundation/ConfigVar.cs | 0 .../Engine/Code/Foundation/ConfigVar.cs.meta | 0 .../Code/Foundation/ConfigVarsContainer.cs | 0 .../Foundation/ConfigVarsContainer.cs.meta | 0 .../Engine/Code/Foundation/ConstantsAsset.cs | 16 +- .../Code/Foundation/ConstantsAsset.cs.meta | 0 .../Code/Foundation/ConstsColorAsset.cs | 12 +- .../Code/Foundation/ConstsColorAsset.cs.meta | 0 .../Code/Foundation/ConstsFloatAsset.cs | 12 +- .../Code/Foundation/ConstsFloatAsset.cs.meta | 0 .../Engine/Code/Foundation/ConstsIntAsset.cs | 12 +- .../Code/Foundation/ConstsIntAsset.cs.meta | 0 .../Engine/Code/Foundation/ConstsProperty.cs | 72 ++--- .../Code/Foundation/ConstsProperty.cs.meta | 0 .../Engine/Code/Foundation/ControllerAsset.cs | 0 .../Code/Foundation/ControllerAsset.cs.meta | 0 Runtime/Engine/Code/Foundation/DIContext.cs | 0 .../Engine/Code/Foundation/DIContext.cs.meta | 0 .../Code/Foundation/DisposableListener.cs | 0 .../Foundation/DisposableListener.cs.meta | 0 Runtime/Engine/Code/Foundation/Either.cs | 0 Runtime/Engine/Code/Foundation/Either.cs.meta | 0 Runtime/Engine/Code/Foundation/FloatRange.cs | 0 .../Engine/Code/Foundation/FloatRange.cs.meta | 0 Runtime/Engine/Code/Foundation/IController.cs | 12 +- .../Code/Foundation/IController.cs.meta | 0 Runtime/Engine/Code/Foundation/IFactory.cs | 8 +- .../Engine/Code/Foundation/IFactory.cs.meta | 0 Runtime/Engine/Code/Foundation/IPredicate.cs | 0 .../Engine/Code/Foundation/IPredicate.cs.meta | 0 Runtime/Engine/Code/Foundation/IService.cs | 0 .../Engine/Code/Foundation/IService.cs.meta | 0 Runtime/Engine/Code/Foundation/Logger.cs | 0 Runtime/Engine/Code/Foundation/Logger.cs.meta | 0 .../Engine/Code/Foundation/SceneContext.cs | 22 +- .../Code/Foundation/SceneContext.cs.meta | 0 .../Code/Foundation/SerializableGuid.cs | 0 .../Code/Foundation/SerializableGuid.cs.meta | 0 .../Engine/Code/Foundation/StateMachine.cs | 0 .../Code/Foundation/StateMachine.cs.meta | 0 Runtime/Engine/Code/Graphics.meta | 0 Runtime/Engine/Code/Graphics/CRT.meta | 0 .../Code/Graphics/CRT/M_CRT_Default.mat | 0 .../Code/Graphics/CRT/M_CRT_Default.mat.meta | 0 .../Code/Graphics/CRT/SG_CRT.shadergraph | 0 .../Code/Graphics/CRT/SG_CRT.shadergraph.meta | 0 .../Engine/Code/Graphics/MainCameraService.cs | 0 .../Code/Graphics/MainCameraService.cs.meta | 0 Runtime/Engine/Code/Graphics/Pixelize.meta | 0 .../Code/Graphics/Pixelize/Pixelize.shader | 0 .../Graphics/Pixelize/Pixelize.shader.meta | 0 .../Code/Graphics/Pixelize/PixelizeFeature.cs | 0 .../Graphics/Pixelize/PixelizeFeature.cs.meta | 0 .../Code/Graphics/Pixelize/PixelizePass.cs | 0 .../Graphics/Pixelize/PixelizePass.cs.meta | 0 Runtime/Engine/Code/Main.meta | 0 Runtime/Engine/Code/Main/EntryPoint.cs | 0 Runtime/Engine/Code/Main/EntryPoint.cs.meta | 0 Runtime/Engine/Code/Main/RR.cs | 19 +- Runtime/Engine/Code/Main/RR.cs.meta | 0 Runtime/Engine/Code/MainSceneInstaller.cs | 0 .../Engine/Code/MainSceneInstaller.cs.meta | 0 Runtime/Engine/Code/Misc.meta | 0 Runtime/Engine/Code/RAsset.cs | 0 Runtime/Engine/Code/RAsset.cs.meta | 0 Runtime/Engine/Code/RConsts.cs | 0 Runtime/Engine/Code/RConsts.cs.meta | 0 Runtime/Engine/Code/Services.meta | 0 Runtime/Engine/Code/Services/Console.meta | 0 .../Code/Services/Console/ConsoleService.cs | 0 .../Services/Console/ConsoleService.cs.meta | 0 .../Services/Console/ConsoleServiceAsset.cs | 3 +- .../Console/ConsoleServiceAsset.cs.meta | 0 Runtime/Engine/Code/Services/ConsoleUI.meta | 0 .../Services/ConsoleUI/ConsoleUIService.cs | 0 .../ConsoleUI/ConsoleUIService.cs.meta | 0 .../Code/Services/ConsoleUI/ConsoleVC.cs | 0 .../Code/Services/ConsoleUI/ConsoleVC.cs.meta | 0 Runtime/Engine/Code/Services/Crosshair.meta | 0 .../Services/Crosshair/CrosshairService.cs | 24 +- .../Crosshair/CrosshairService.cs.meta | 0 Runtime/Engine/Code/Services/Development.meta | 0 .../Services/Development/DebugOverlayView.cs | 0 .../Development/DebugOverlayView.cs.meta | 0 .../Services/Development/DevToolsService.cs | 0 .../Development/DevToolsService.cs.meta | 0 Runtime/Engine/Code/Services/GameMode.meta | 0 .../Services/GameMode/GameModesService.cs | 2 +- .../GameMode/GameModesService.cs.meta | 0 .../Services/GameMode/GameServiceAsset.cs | 12 - .../GameMode/GameServiceAsset.cs.meta | 2 - .../Code/Services/GameMode/IGameMode.cs | 34 +-- .../Code/Services/GameMode/IGameMode.cs.meta | 0 Runtime/Engine/Code/Services/Input.meta | 0 .../Code/Services/Input/InputService.cs | 0 .../Code/Services/Input/InputService.cs.meta | 0 .../Code/Services/Input/InputServiceAsset.cs | 3 +- .../Services/Input/InputServiceAsset.cs.meta | 0 .../Services/Input/ScriptableInputAction.cs | 0 .../Input/ScriptableInputAction.cs.meta | 0 Runtime/Engine/Code/Services/Simulation.meta | 0 .../Engine/Code/Services/Simulation/Actor.cs | 0 .../Code/Services/Simulation/Actor.cs.meta | 0 .../Code/Services/Simulation/Characters.meta | 0 .../Characters/CharacterLocomotion.cs | 0 .../Characters/CharacterLocomotion.cs.meta | 0 .../Code/Services/Simulation/Interactors.meta | 0 .../Simulation/Interactors/IInteractor.cs | 0 .../Interactors/IInteractor.cs.meta | 0 .../Simulation/PhysicsObjectDragger.cs | 0 .../Simulation/PhysicsObjectDragger.cs.meta | 0 .../Code/Services/Simulation/Sensors.meta | 0 .../Services/Simulation/Sensors/ISensor.cs | 0 .../Simulation/Sensors/ISensor.cs.meta | 0 .../Simulation/Sensors/RaycastSensor.cs | 0 .../Simulation/Sensors/RaycastSensor.cs.meta | 0 .../Services/Simulation/WorldConfigAsset.cs | 0 .../Simulation/WorldConfigAsset.cs.meta | 0 .../Code/Services/Simulation/WorldService.cs | 0 .../Services/Simulation/WorldService.cs.meta | 0 .../Services/Simulation/WorldServiceAsset.cs | 4 +- .../Simulation/WorldServiceAsset.cs.meta | 0 Runtime/Engine/Code/UI.meta | 0 Runtime/Engine/Code/UI/IView.cs | 0 Runtime/Engine/Code/UI/IView.cs.meta | 0 .../Engine/Code/UI/IVisualElementBuilder.cs | 0 .../Code/UI/IVisualElementBuilder.cs.meta | 0 Runtime/Engine/Code/UI/UIDocumentView.cs | 0 Runtime/Engine/Code/UI/UIDocumentView.cs.meta | 0 Runtime/Engine/RebootKit.Engine.asmdef | 0 Runtime/Engine/RebootKit.Engine.asmdef.meta | 0 Runtime/Engine/Resources.meta | 0 Runtime/Engine/Resources/RebootKit.meta | 0 .../RebootKit/Engine Core Services.asset | 0 .../RebootKit/Engine Core Services.asset.meta | 0 Runtime/Engine/core_assets.meta | 0 Runtime/Engine/core_assets/boot.meta | 0 .../Engine/core_assets/boot/scn_boot.unity | 0 .../core_assets/boot/scn_boot.unity.meta | 0 .../controls_realitykit.inputactions | 0 .../controls_realitykit.inputactions.meta | 0 .../input_action_toggle_console.asset | 0 .../input_action_toggle_console.asset.meta | 0 Runtime/Engine/core_assets/logo.meta | 0 .../core_assets/logo/Color_Standarization.txt | 6 +- .../logo/Color_Standarization.txt.meta | 0 .../Engine/core_assets/logo/Logo_black_01.svg | 0 .../core_assets/logo/Logo_black_01.svg.meta | 0 .../Engine/core_assets/logo/Logo_black_02.svg | 0 .../core_assets/logo/Logo_black_02.svg.meta | 0 .../Engine/core_assets/logo/Logo_color_01.svg | 0 .../core_assets/logo/Logo_color_01.svg.meta | 0 .../Engine/core_assets/logo/Logo_color_02.svg | 0 .../core_assets/logo/Logo_color_02.svg.meta | 0 .../Engine/core_assets/logo/Logo_white_01.svg | 0 .../core_assets/logo/Logo_white_01.svg.meta | 0 .../Engine/core_assets/logo/Logo_white_02.svg | 0 .../core_assets/logo/Logo_white_02.svg.meta | 0 .../core_assets/logo/RR_Logo_Plain_4k.png | Bin .../logo/RR_Logo_Plain_4k.png.meta | 0 .../Engine/core_assets/sample_main_menu.meta | 0 .../sample_main_menu/panel_main_menu.asset | 0 .../panel_main_menu.asset.meta | 0 .../sample_main_menu/scn_main_menu.unity | 0 .../sample_main_menu/scn_main_menu.unity.meta | 0 .../sample_main_menu/ui_main_menu.uxml | 0 .../sample_main_menu/ui_main_menu.uxml.meta | 0 Runtime/Engine/core_assets/services.meta | 0 .../services/service_console.asset | 0 .../services/service_console.asset.meta | 0 .../core_assets/services/service_game.asset | 14 - .../services/service_game.asset.meta | 8 - .../core_assets/services/service_input.asset | 0 .../services/service_input.asset.meta | 0 .../core_assets/services/service_world.asset | 0 .../services/service_world.asset.meta | 0 Runtime/Engine/core_assets/ui.meta | 0 Runtime/Engine/core_assets/ui/fonts.meta | 0 Runtime/Engine/core_assets/ui/fonts/Teko.meta | 0 .../Engine/core_assets/ui/fonts/Teko/OFL.txt | 186 +++++------ .../core_assets/ui/fonts/Teko/OFL.txt.meta | 0 .../core_assets/ui/fonts/Teko/README.txt | 0 .../core_assets/ui/fonts/Teko/README.txt.meta | 0 .../Teko/Teko-VariableFont_wght SDF.asset | 0 .../Teko-VariableFont_wght SDF.asset.meta | 0 .../ui/fonts/Teko/Teko-VariableFont_wght.ttf | Bin .../Teko/Teko-VariableFont_wght.ttf.meta | 0 .../core_assets/ui/fonts/Teko/static.meta | 0 .../ui/fonts/Teko/static/Teko-Bold.ttf | Bin .../ui/fonts/Teko/static/Teko-Bold.ttf.meta | 0 .../ui/fonts/Teko/static/Teko-Light.ttf | Bin .../ui/fonts/Teko/static/Teko-Light.ttf.meta | 0 .../ui/fonts/Teko/static/Teko-Medium.ttf | Bin .../ui/fonts/Teko/static/Teko-Medium.ttf.meta | 0 .../ui/fonts/Teko/static/Teko-Regular.ttf | Bin .../fonts/Teko/static/Teko-Regular.ttf.meta | 0 .../ui/fonts/Teko/static/Teko-SemiBold.ttf | Bin .../fonts/Teko/static/Teko-SemiBold.ttf.meta | 0 .../core_assets/ui/panel_rebootkit.asset | 0 .../core_assets/ui/panel_rebootkit.asset.meta | 0 .../Engine/core_assets/ui/tss_rebootkit.tss | 288 +++++++++--------- .../core_assets/ui/tss_rebootkit.tss.meta | 0 Runtime/Engine/core_assets/ui/tss_rr_base.tss | 222 +++++++------- .../core_assets/ui/tss_rr_base.tss.meta | 0 Runtime/Engine/core_assets/ui/ui_console.uxml | 0 .../core_assets/ui/ui_console.uxml.meta | 0 .../core_assets/ui/ui_debug_overlay.uxml | 16 +- .../core_assets/ui/ui_debug_overlay.uxml.meta | 0 .../core_assets/ui/ui_root_container.uxml | 6 +- .../ui/ui_root_container.uxml.meta | 0 Runtime/FPPKit.meta | 0 Runtime/FPPKit/Code.meta | 0 Runtime/FPPKit/Code/FPPActor.cs | 0 Runtime/FPPKit/Code/FPPActor.cs.meta | 0 Runtime/FPPKit/Code/FPPCamera.cs | 0 Runtime/FPPKit/Code/FPPCamera.cs.meta | 0 Runtime/FPPKit/Code/FPPConsts.cs | 0 Runtime/FPPKit/Code/FPPConsts.cs.meta | 0 Runtime/FPPKit/Code/FPPLocomotion.cs | 0 Runtime/FPPKit/Code/FPPLocomotion.cs.meta | 0 Runtime/FPPKit/Code/FPPPlayerController.cs | 0 .../FPPKit/Code/FPPPlayerController.cs.meta | 0 .../FPPKit/Code/FPPPlayerControllerAsset.cs | 3 +- .../Code/FPPPlayerControllerAsset.cs.meta | 0 Runtime/FPPKit/FPP PlayerController.asset | 0 .../FPPKit/FPP PlayerController.asset.meta | 0 Runtime/FPPKit/Prefabs.meta | 0 Runtime/FPPKit/Prefabs/actor_fpp.prefab | 0 Runtime/FPPKit/Prefabs/actor_fpp.prefab.meta | 0 Runtime/FPPKit/RebootKit.FPPKit.asmdef | 0 Runtime/FPPKit/RebootKit.FPPKit.asmdef.meta | 0 Tests/Runtime.meta | 0 Tests/Runtime/Engine.meta | 0 Tests/Runtime/Engine/DIContextTests.cs | 0 Tests/Runtime/Engine/DIContextTests.cs.meta | 0 Tests/Runtime/Engine/EitherTests.cs | 0 Tests/Runtime/Engine/EitherTests.cs.meta | 0 Tests/Runtime/Engine/PredicateTests.cs | 0 Tests/Runtime/Engine/PredicateTests.cs.meta | 0 .../Engine/RebootKit.Engine.Tests.asmdef | 0 .../Engine/RebootKit.Engine.Tests.asmdef.meta | 0 303 files changed, 1361 insertions(+), 1372 deletions(-) mode change 100644 => 100755 Editor/Build.meta mode change 100644 => 100755 Editor/Build/BuildVersionBumper.cs mode change 100644 => 100755 Editor/Build/BuildVersionBumper.cs.meta mode change 100644 => 100755 Editor/CommonEditorActions.cs mode change 100644 => 100755 Editor/CommonEditorActions.cs.meta mode change 100644 => 100755 Editor/PropertyDrawers.meta mode change 100644 => 100755 Editor/PropertyDrawers/CVarDrawer.cs mode change 100644 => 100755 Editor/PropertyDrawers/CVarDrawer.cs.meta mode change 100644 => 100755 Editor/PropertyDrawers/ConstsPropertyDrawer.cs mode change 100644 => 100755 Editor/PropertyDrawers/ConstsPropertyDrawer.cs.meta mode change 100644 => 100755 Editor/PropertyDrawers/SerializableGuidDrawer.cs mode change 100644 => 100755 Editor/PropertyDrawers/SerializableGuidDrawer.cs.meta mode change 100644 => 100755 Editor/PropertyDrawers/ValueRangeDrawer.cs mode change 100644 => 100755 Editor/PropertyDrawers/ValueRangeDrawer.cs.meta mode change 100644 => 100755 Editor/REditorConsts.cs mode change 100644 => 100755 Editor/REditorConsts.cs.meta mode change 100644 => 100755 Editor/RebootKitEditor.asmdef mode change 100644 => 100755 Editor/RebootKitEditor.asmdef.meta mode change 100644 => 100755 Editor/RebootWindow.meta mode change 100644 => 100755 Editor/RebootWindow/ConfigVarsView.cs mode change 100644 => 100755 Editor/RebootWindow/ConfigVarsView.cs.meta mode change 100644 => 100755 Editor/RebootWindow/GameServicesView.cs mode change 100644 => 100755 Editor/RebootWindow/GameServicesView.cs.meta mode change 100644 => 100755 Editor/RebootWindow/HomeView.cs mode change 100644 => 100755 Editor/RebootWindow/HomeView.cs.meta mode change 100644 => 100755 Editor/RebootWindow/RebootEditorWindow.cs mode change 100644 => 100755 Editor/RebootWindow/RebootEditorWindow.cs.meta mode change 100644 => 100755 Editor/RebootWindow/TabView.cs mode change 100644 => 100755 Editor/RebootWindow/TabView.cs.meta mode change 100644 => 100755 Editor/RebootWindow/WorldsView.cs mode change 100644 => 100755 Editor/RebootWindow/WorldsView.cs.meta mode change 100644 => 100755 Editor/Utils.meta mode change 100644 => 100755 Editor/Utils/AssetDatabaseEx.cs mode change 100644 => 100755 Editor/Utils/AssetDatabaseEx.cs.meta mode change 100644 => 100755 Editor/Utils/CVarSerializedPropertiesFinder.cs mode change 100644 => 100755 Editor/Utils/CVarSerializedPropertiesFinder.cs.meta mode change 100644 => 100755 Editor/VisualElements.meta mode change 100644 => 100755 Editor/VisualElements/CVarPropertyField.cs mode change 100644 => 100755 Editor/VisualElements/CVarPropertyField.cs.meta mode change 100644 => 100755 Runtime/Engine.meta mode change 100644 => 100755 Runtime/Engine/Code.meta mode change 100644 => 100755 Runtime/Engine/Code/Components.meta mode change 100644 => 100755 Runtime/Engine/Code/Components/CopyTransform.cs mode change 100644 => 100755 Runtime/Engine/Code/Components/CopyTransform.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/EngineConfigAsset.cs mode change 100644 => 100755 Runtime/Engine/Code/EngineConfigAsset.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/EngineCoreServicesAsset.cs mode change 100644 => 100755 Runtime/Engine/Code/EngineCoreServicesAsset.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Extensions.meta mode change 100644 => 100755 Runtime/Engine/Code/Extensions/ColorEx.cs mode change 100644 => 100755 Runtime/Engine/Code/Extensions/ColorEx.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Extensions/GameObjectEx.cs mode change 100644 => 100755 Runtime/Engine/Code/Extensions/GameObjectEx.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Extensions/LayerMaskEx.cs mode change 100644 => 100755 Runtime/Engine/Code/Extensions/LayerMaskEx.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Extensions/ListEx.cs mode change 100644 => 100755 Runtime/Engine/Code/Extensions/ListEx.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Extensions/TransformEx.cs mode change 100644 => 100755 Runtime/Engine/Code/Extensions/TransformEx.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Extensions/Vector3Ex.cs mode change 100644 => 100755 Runtime/Engine/Code/Extensions/Vector3Ex.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Foundation.meta mode change 100644 => 100755 Runtime/Engine/Code/Foundation/ConfigVar.cs mode change 100644 => 100755 Runtime/Engine/Code/Foundation/ConfigVar.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Foundation/ConfigVarsContainer.cs mode change 100644 => 100755 Runtime/Engine/Code/Foundation/ConfigVarsContainer.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Foundation/ConstantsAsset.cs mode change 100644 => 100755 Runtime/Engine/Code/Foundation/ConstantsAsset.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Foundation/ConstsColorAsset.cs mode change 100644 => 100755 Runtime/Engine/Code/Foundation/ConstsColorAsset.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Foundation/ConstsFloatAsset.cs mode change 100644 => 100755 Runtime/Engine/Code/Foundation/ConstsFloatAsset.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Foundation/ConstsIntAsset.cs mode change 100644 => 100755 Runtime/Engine/Code/Foundation/ConstsIntAsset.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Foundation/ConstsProperty.cs mode change 100644 => 100755 Runtime/Engine/Code/Foundation/ConstsProperty.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Foundation/ControllerAsset.cs mode change 100644 => 100755 Runtime/Engine/Code/Foundation/ControllerAsset.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Foundation/DIContext.cs mode change 100644 => 100755 Runtime/Engine/Code/Foundation/DIContext.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Foundation/DisposableListener.cs mode change 100644 => 100755 Runtime/Engine/Code/Foundation/DisposableListener.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Foundation/Either.cs mode change 100644 => 100755 Runtime/Engine/Code/Foundation/Either.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Foundation/FloatRange.cs mode change 100644 => 100755 Runtime/Engine/Code/Foundation/FloatRange.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Foundation/IController.cs mode change 100644 => 100755 Runtime/Engine/Code/Foundation/IController.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Foundation/IFactory.cs mode change 100644 => 100755 Runtime/Engine/Code/Foundation/IFactory.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Foundation/IPredicate.cs mode change 100644 => 100755 Runtime/Engine/Code/Foundation/IPredicate.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Foundation/IService.cs mode change 100644 => 100755 Runtime/Engine/Code/Foundation/IService.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Foundation/Logger.cs mode change 100644 => 100755 Runtime/Engine/Code/Foundation/Logger.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Foundation/SceneContext.cs mode change 100644 => 100755 Runtime/Engine/Code/Foundation/SceneContext.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Foundation/SerializableGuid.cs mode change 100644 => 100755 Runtime/Engine/Code/Foundation/SerializableGuid.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Foundation/StateMachine.cs mode change 100644 => 100755 Runtime/Engine/Code/Foundation/StateMachine.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Graphics.meta mode change 100644 => 100755 Runtime/Engine/Code/Graphics/CRT.meta mode change 100644 => 100755 Runtime/Engine/Code/Graphics/CRT/M_CRT_Default.mat mode change 100644 => 100755 Runtime/Engine/Code/Graphics/CRT/M_CRT_Default.mat.meta mode change 100644 => 100755 Runtime/Engine/Code/Graphics/CRT/SG_CRT.shadergraph mode change 100644 => 100755 Runtime/Engine/Code/Graphics/CRT/SG_CRT.shadergraph.meta mode change 100644 => 100755 Runtime/Engine/Code/Graphics/MainCameraService.cs mode change 100644 => 100755 Runtime/Engine/Code/Graphics/MainCameraService.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Graphics/Pixelize.meta mode change 100644 => 100755 Runtime/Engine/Code/Graphics/Pixelize/Pixelize.shader mode change 100644 => 100755 Runtime/Engine/Code/Graphics/Pixelize/Pixelize.shader.meta mode change 100644 => 100755 Runtime/Engine/Code/Graphics/Pixelize/PixelizeFeature.cs mode change 100644 => 100755 Runtime/Engine/Code/Graphics/Pixelize/PixelizeFeature.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Graphics/Pixelize/PixelizePass.cs mode change 100644 => 100755 Runtime/Engine/Code/Graphics/Pixelize/PixelizePass.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Main.meta mode change 100644 => 100755 Runtime/Engine/Code/Main/EntryPoint.cs mode change 100644 => 100755 Runtime/Engine/Code/Main/EntryPoint.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Main/RR.cs mode change 100644 => 100755 Runtime/Engine/Code/Main/RR.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/MainSceneInstaller.cs mode change 100644 => 100755 Runtime/Engine/Code/MainSceneInstaller.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Misc.meta mode change 100644 => 100755 Runtime/Engine/Code/RAsset.cs mode change 100644 => 100755 Runtime/Engine/Code/RAsset.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/RConsts.cs mode change 100644 => 100755 Runtime/Engine/Code/RConsts.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Services.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/Console.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/Console/ConsoleService.cs mode change 100644 => 100755 Runtime/Engine/Code/Services/Console/ConsoleService.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/Console/ConsoleServiceAsset.cs mode change 100644 => 100755 Runtime/Engine/Code/Services/Console/ConsoleServiceAsset.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/ConsoleUI.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/ConsoleUI/ConsoleUIService.cs mode change 100644 => 100755 Runtime/Engine/Code/Services/ConsoleUI/ConsoleUIService.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/ConsoleUI/ConsoleVC.cs mode change 100644 => 100755 Runtime/Engine/Code/Services/ConsoleUI/ConsoleVC.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/Crosshair.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/Crosshair/CrosshairService.cs mode change 100644 => 100755 Runtime/Engine/Code/Services/Crosshair/CrosshairService.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/Development.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/Development/DebugOverlayView.cs mode change 100644 => 100755 Runtime/Engine/Code/Services/Development/DebugOverlayView.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/Development/DevToolsService.cs mode change 100644 => 100755 Runtime/Engine/Code/Services/Development/DevToolsService.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/GameMode.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/GameMode/GameModesService.cs mode change 100644 => 100755 Runtime/Engine/Code/Services/GameMode/GameModesService.cs.meta delete mode 100644 Runtime/Engine/Code/Services/GameMode/GameServiceAsset.cs delete mode 100644 Runtime/Engine/Code/Services/GameMode/GameServiceAsset.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/GameMode/IGameMode.cs mode change 100644 => 100755 Runtime/Engine/Code/Services/GameMode/IGameMode.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/Input.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/Input/InputService.cs mode change 100644 => 100755 Runtime/Engine/Code/Services/Input/InputService.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/Input/InputServiceAsset.cs mode change 100644 => 100755 Runtime/Engine/Code/Services/Input/InputServiceAsset.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/Input/ScriptableInputAction.cs mode change 100644 => 100755 Runtime/Engine/Code/Services/Input/ScriptableInputAction.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/Simulation.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/Simulation/Actor.cs mode change 100644 => 100755 Runtime/Engine/Code/Services/Simulation/Actor.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/Simulation/Characters.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/Simulation/Characters/CharacterLocomotion.cs mode change 100644 => 100755 Runtime/Engine/Code/Services/Simulation/Characters/CharacterLocomotion.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/Simulation/Interactors.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/Simulation/Interactors/IInteractor.cs mode change 100644 => 100755 Runtime/Engine/Code/Services/Simulation/Interactors/IInteractor.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/Simulation/PhysicsObjectDragger.cs mode change 100644 => 100755 Runtime/Engine/Code/Services/Simulation/PhysicsObjectDragger.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/Simulation/Sensors.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/Simulation/Sensors/ISensor.cs mode change 100644 => 100755 Runtime/Engine/Code/Services/Simulation/Sensors/ISensor.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/Simulation/Sensors/RaycastSensor.cs mode change 100644 => 100755 Runtime/Engine/Code/Services/Simulation/Sensors/RaycastSensor.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/Simulation/WorldConfigAsset.cs mode change 100644 => 100755 Runtime/Engine/Code/Services/Simulation/WorldConfigAsset.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/Simulation/WorldService.cs mode change 100644 => 100755 Runtime/Engine/Code/Services/Simulation/WorldService.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/Services/Simulation/WorldServiceAsset.cs mode change 100644 => 100755 Runtime/Engine/Code/Services/Simulation/WorldServiceAsset.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/UI.meta mode change 100644 => 100755 Runtime/Engine/Code/UI/IView.cs mode change 100644 => 100755 Runtime/Engine/Code/UI/IView.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/UI/IVisualElementBuilder.cs mode change 100644 => 100755 Runtime/Engine/Code/UI/IVisualElementBuilder.cs.meta mode change 100644 => 100755 Runtime/Engine/Code/UI/UIDocumentView.cs mode change 100644 => 100755 Runtime/Engine/Code/UI/UIDocumentView.cs.meta mode change 100644 => 100755 Runtime/Engine/RebootKit.Engine.asmdef mode change 100644 => 100755 Runtime/Engine/RebootKit.Engine.asmdef.meta mode change 100644 => 100755 Runtime/Engine/Resources.meta mode change 100644 => 100755 Runtime/Engine/Resources/RebootKit.meta mode change 100644 => 100755 Runtime/Engine/Resources/RebootKit/Engine Core Services.asset mode change 100644 => 100755 Runtime/Engine/Resources/RebootKit/Engine Core Services.asset.meta mode change 100644 => 100755 Runtime/Engine/core_assets.meta mode change 100644 => 100755 Runtime/Engine/core_assets/boot.meta mode change 100644 => 100755 Runtime/Engine/core_assets/boot/scn_boot.unity mode change 100644 => 100755 Runtime/Engine/core_assets/boot/scn_boot.unity.meta mode change 100644 => 100755 Runtime/Engine/core_assets/controls_realitykit.inputactions mode change 100644 => 100755 Runtime/Engine/core_assets/controls_realitykit.inputactions.meta mode change 100644 => 100755 Runtime/Engine/core_assets/input_action_toggle_console.asset mode change 100644 => 100755 Runtime/Engine/core_assets/input_action_toggle_console.asset.meta mode change 100644 => 100755 Runtime/Engine/core_assets/logo.meta mode change 100644 => 100755 Runtime/Engine/core_assets/logo/Color_Standarization.txt mode change 100644 => 100755 Runtime/Engine/core_assets/logo/Color_Standarization.txt.meta mode change 100644 => 100755 Runtime/Engine/core_assets/logo/Logo_black_01.svg mode change 100644 => 100755 Runtime/Engine/core_assets/logo/Logo_black_01.svg.meta mode change 100644 => 100755 Runtime/Engine/core_assets/logo/Logo_black_02.svg mode change 100644 => 100755 Runtime/Engine/core_assets/logo/Logo_black_02.svg.meta mode change 100644 => 100755 Runtime/Engine/core_assets/logo/Logo_color_01.svg mode change 100644 => 100755 Runtime/Engine/core_assets/logo/Logo_color_01.svg.meta mode change 100644 => 100755 Runtime/Engine/core_assets/logo/Logo_color_02.svg mode change 100644 => 100755 Runtime/Engine/core_assets/logo/Logo_color_02.svg.meta mode change 100644 => 100755 Runtime/Engine/core_assets/logo/Logo_white_01.svg mode change 100644 => 100755 Runtime/Engine/core_assets/logo/Logo_white_01.svg.meta mode change 100644 => 100755 Runtime/Engine/core_assets/logo/Logo_white_02.svg mode change 100644 => 100755 Runtime/Engine/core_assets/logo/Logo_white_02.svg.meta mode change 100644 => 100755 Runtime/Engine/core_assets/logo/RR_Logo_Plain_4k.png mode change 100644 => 100755 Runtime/Engine/core_assets/logo/RR_Logo_Plain_4k.png.meta mode change 100644 => 100755 Runtime/Engine/core_assets/sample_main_menu.meta mode change 100644 => 100755 Runtime/Engine/core_assets/sample_main_menu/panel_main_menu.asset mode change 100644 => 100755 Runtime/Engine/core_assets/sample_main_menu/panel_main_menu.asset.meta mode change 100644 => 100755 Runtime/Engine/core_assets/sample_main_menu/scn_main_menu.unity mode change 100644 => 100755 Runtime/Engine/core_assets/sample_main_menu/scn_main_menu.unity.meta mode change 100644 => 100755 Runtime/Engine/core_assets/sample_main_menu/ui_main_menu.uxml mode change 100644 => 100755 Runtime/Engine/core_assets/sample_main_menu/ui_main_menu.uxml.meta mode change 100644 => 100755 Runtime/Engine/core_assets/services.meta mode change 100644 => 100755 Runtime/Engine/core_assets/services/service_console.asset mode change 100644 => 100755 Runtime/Engine/core_assets/services/service_console.asset.meta delete mode 100644 Runtime/Engine/core_assets/services/service_game.asset delete mode 100644 Runtime/Engine/core_assets/services/service_game.asset.meta mode change 100644 => 100755 Runtime/Engine/core_assets/services/service_input.asset mode change 100644 => 100755 Runtime/Engine/core_assets/services/service_input.asset.meta mode change 100644 => 100755 Runtime/Engine/core_assets/services/service_world.asset mode change 100644 => 100755 Runtime/Engine/core_assets/services/service_world.asset.meta mode change 100644 => 100755 Runtime/Engine/core_assets/ui.meta mode change 100644 => 100755 Runtime/Engine/core_assets/ui/fonts.meta mode change 100644 => 100755 Runtime/Engine/core_assets/ui/fonts/Teko.meta mode change 100644 => 100755 Runtime/Engine/core_assets/ui/fonts/Teko/OFL.txt mode change 100644 => 100755 Runtime/Engine/core_assets/ui/fonts/Teko/OFL.txt.meta mode change 100644 => 100755 Runtime/Engine/core_assets/ui/fonts/Teko/README.txt mode change 100644 => 100755 Runtime/Engine/core_assets/ui/fonts/Teko/README.txt.meta mode change 100644 => 100755 Runtime/Engine/core_assets/ui/fonts/Teko/Teko-VariableFont_wght SDF.asset mode change 100644 => 100755 Runtime/Engine/core_assets/ui/fonts/Teko/Teko-VariableFont_wght SDF.asset.meta mode change 100644 => 100755 Runtime/Engine/core_assets/ui/fonts/Teko/Teko-VariableFont_wght.ttf mode change 100644 => 100755 Runtime/Engine/core_assets/ui/fonts/Teko/Teko-VariableFont_wght.ttf.meta mode change 100644 => 100755 Runtime/Engine/core_assets/ui/fonts/Teko/static.meta mode change 100644 => 100755 Runtime/Engine/core_assets/ui/fonts/Teko/static/Teko-Bold.ttf mode change 100644 => 100755 Runtime/Engine/core_assets/ui/fonts/Teko/static/Teko-Bold.ttf.meta mode change 100644 => 100755 Runtime/Engine/core_assets/ui/fonts/Teko/static/Teko-Light.ttf mode change 100644 => 100755 Runtime/Engine/core_assets/ui/fonts/Teko/static/Teko-Light.ttf.meta mode change 100644 => 100755 Runtime/Engine/core_assets/ui/fonts/Teko/static/Teko-Medium.ttf mode change 100644 => 100755 Runtime/Engine/core_assets/ui/fonts/Teko/static/Teko-Medium.ttf.meta mode change 100644 => 100755 Runtime/Engine/core_assets/ui/fonts/Teko/static/Teko-Regular.ttf mode change 100644 => 100755 Runtime/Engine/core_assets/ui/fonts/Teko/static/Teko-Regular.ttf.meta mode change 100644 => 100755 Runtime/Engine/core_assets/ui/fonts/Teko/static/Teko-SemiBold.ttf mode change 100644 => 100755 Runtime/Engine/core_assets/ui/fonts/Teko/static/Teko-SemiBold.ttf.meta mode change 100644 => 100755 Runtime/Engine/core_assets/ui/panel_rebootkit.asset mode change 100644 => 100755 Runtime/Engine/core_assets/ui/panel_rebootkit.asset.meta mode change 100644 => 100755 Runtime/Engine/core_assets/ui/tss_rebootkit.tss mode change 100644 => 100755 Runtime/Engine/core_assets/ui/tss_rebootkit.tss.meta mode change 100644 => 100755 Runtime/Engine/core_assets/ui/tss_rr_base.tss mode change 100644 => 100755 Runtime/Engine/core_assets/ui/tss_rr_base.tss.meta mode change 100644 => 100755 Runtime/Engine/core_assets/ui/ui_console.uxml mode change 100644 => 100755 Runtime/Engine/core_assets/ui/ui_console.uxml.meta mode change 100644 => 100755 Runtime/Engine/core_assets/ui/ui_debug_overlay.uxml mode change 100644 => 100755 Runtime/Engine/core_assets/ui/ui_debug_overlay.uxml.meta mode change 100644 => 100755 Runtime/Engine/core_assets/ui/ui_root_container.uxml mode change 100644 => 100755 Runtime/Engine/core_assets/ui/ui_root_container.uxml.meta mode change 100644 => 100755 Runtime/FPPKit.meta mode change 100644 => 100755 Runtime/FPPKit/Code.meta mode change 100644 => 100755 Runtime/FPPKit/Code/FPPActor.cs mode change 100644 => 100755 Runtime/FPPKit/Code/FPPActor.cs.meta mode change 100644 => 100755 Runtime/FPPKit/Code/FPPCamera.cs mode change 100644 => 100755 Runtime/FPPKit/Code/FPPCamera.cs.meta mode change 100644 => 100755 Runtime/FPPKit/Code/FPPConsts.cs mode change 100644 => 100755 Runtime/FPPKit/Code/FPPConsts.cs.meta mode change 100644 => 100755 Runtime/FPPKit/Code/FPPLocomotion.cs mode change 100644 => 100755 Runtime/FPPKit/Code/FPPLocomotion.cs.meta mode change 100644 => 100755 Runtime/FPPKit/Code/FPPPlayerController.cs mode change 100644 => 100755 Runtime/FPPKit/Code/FPPPlayerController.cs.meta mode change 100644 => 100755 Runtime/FPPKit/Code/FPPPlayerControllerAsset.cs mode change 100644 => 100755 Runtime/FPPKit/Code/FPPPlayerControllerAsset.cs.meta mode change 100644 => 100755 Runtime/FPPKit/FPP PlayerController.asset mode change 100644 => 100755 Runtime/FPPKit/FPP PlayerController.asset.meta mode change 100644 => 100755 Runtime/FPPKit/Prefabs.meta mode change 100644 => 100755 Runtime/FPPKit/Prefabs/actor_fpp.prefab mode change 100644 => 100755 Runtime/FPPKit/Prefabs/actor_fpp.prefab.meta mode change 100644 => 100755 Runtime/FPPKit/RebootKit.FPPKit.asmdef mode change 100644 => 100755 Runtime/FPPKit/RebootKit.FPPKit.asmdef.meta mode change 100644 => 100755 Tests/Runtime.meta mode change 100644 => 100755 Tests/Runtime/Engine.meta mode change 100644 => 100755 Tests/Runtime/Engine/DIContextTests.cs mode change 100644 => 100755 Tests/Runtime/Engine/DIContextTests.cs.meta mode change 100644 => 100755 Tests/Runtime/Engine/EitherTests.cs mode change 100644 => 100755 Tests/Runtime/Engine/EitherTests.cs.meta mode change 100644 => 100755 Tests/Runtime/Engine/PredicateTests.cs mode change 100644 => 100755 Tests/Runtime/Engine/PredicateTests.cs.meta mode change 100644 => 100755 Tests/Runtime/Engine/RebootKit.Engine.Tests.asmdef mode change 100644 => 100755 Tests/Runtime/Engine/RebootKit.Engine.Tests.asmdef.meta diff --git a/Editor/Build.meta b/Editor/Build.meta old mode 100644 new mode 100755 diff --git a/Editor/Build/BuildVersionBumper.cs b/Editor/Build/BuildVersionBumper.cs old mode 100644 new mode 100755 index a827a3d..da911d2 --- a/Editor/Build/BuildVersionBumper.cs +++ b/Editor/Build/BuildVersionBumper.cs @@ -1,72 +1,72 @@ -using UnityEngine; -using UnityEditor; -using UnityEditor.Build; -using UnityEditor.Build.Reporting; - -namespace RebootKitEditor.Build { - class BuildVersionBumper : IPostprocessBuildWithReport { - public int callbackOrder => 0; - - public void OnPostprocessBuild(BuildReport report) { - VersionUpdater.IncrementPatch(); - } - } - - static class VersionUpdater { - public static bool IncrementVersion(int incrementMajor = 0, int incrementMinor = 0, int incrementPatch = 0) { - if (TryParseVersion(PlayerSettings.bundleVersion, out int major, out int minor, out int patch)) { - major += incrementMajor; - minor += incrementMinor; - patch += incrementPatch; - string newVersion = $"{major}.{minor}.{patch}"; - - if (SetVersion(newVersion)) { - Debug.Log($"Updated version to: {newVersion}"); - } else { - Debug.LogError($"Failed to update version to: {newVersion}"); - return false; - } - } else { - Debug.LogError($"Failed to parse current version: {PlayerSettings.bundleVersion}"); - return false; - } - - return true; - } - - public static bool IncrementMajor() => IncrementVersion(incrementMajor: 1); - public static bool IncrementMinor() => IncrementVersion(incrementMinor: 1); - public static bool IncrementPatch() => IncrementVersion(incrementPatch: 1); - - static bool SetVersion(string newVersion) { - if (!IsValidVersionFormat(newVersion)) { - Debug.LogError($"Invalid version format: {newVersion}. Expected format: maj.min.ver"); - return false; - } - - PlayerSettings.bundleVersion = newVersion; - Debug.Log($"Application version updated to: {newVersion}"); - return true; - } - - static bool IsValidVersionFormat(string version) { - string[] parts = version.Split('.'); - return parts.Length == 3 && int.TryParse(parts[0], out _) && int.TryParse(parts[1], out _) && int.TryParse(parts[2], out _); - } - - static bool TryParseVersion(string version, out int major, out int minor, out int patch) { - major = 0; - minor = 0; - patch = 0; - - string[] parts = version.Split('.'); - if (parts.Length != 3) { - return false; - } - - return int.TryParse(parts[0], out major) && - int.TryParse(parts[1], out minor) && - int.TryParse(parts[2], out patch); - } - } +using UnityEngine; +using UnityEditor; +using UnityEditor.Build; +using UnityEditor.Build.Reporting; + +namespace RebootKitEditor.Build { + class BuildVersionBumper : IPostprocessBuildWithReport { + public int callbackOrder => 0; + + public void OnPostprocessBuild(BuildReport report) { + VersionUpdater.IncrementPatch(); + } + } + + static class VersionUpdater { + public static bool IncrementVersion(int incrementMajor = 0, int incrementMinor = 0, int incrementPatch = 0) { + if (TryParseVersion(PlayerSettings.bundleVersion, out int major, out int minor, out int patch)) { + major += incrementMajor; + minor += incrementMinor; + patch += incrementPatch; + string newVersion = $"{major}.{minor}.{patch}"; + + if (SetVersion(newVersion)) { + Debug.Log($"Updated version to: {newVersion}"); + } else { + Debug.LogError($"Failed to update version to: {newVersion}"); + return false; + } + } else { + Debug.LogError($"Failed to parse current version: {PlayerSettings.bundleVersion}"); + return false; + } + + return true; + } + + public static bool IncrementMajor() => IncrementVersion(incrementMajor: 1); + public static bool IncrementMinor() => IncrementVersion(incrementMinor: 1); + public static bool IncrementPatch() => IncrementVersion(incrementPatch: 1); + + static bool SetVersion(string newVersion) { + if (!IsValidVersionFormat(newVersion)) { + Debug.LogError($"Invalid version format: {newVersion}. Expected format: maj.min.ver"); + return false; + } + + PlayerSettings.bundleVersion = newVersion; + Debug.Log($"Application version updated to: {newVersion}"); + return true; + } + + static bool IsValidVersionFormat(string version) { + string[] parts = version.Split('.'); + return parts.Length == 3 && int.TryParse(parts[0], out _) && int.TryParse(parts[1], out _) && int.TryParse(parts[2], out _); + } + + static bool TryParseVersion(string version, out int major, out int minor, out int patch) { + major = 0; + minor = 0; + patch = 0; + + string[] parts = version.Split('.'); + if (parts.Length != 3) { + return false; + } + + return int.TryParse(parts[0], out major) && + int.TryParse(parts[1], out minor) && + int.TryParse(parts[2], out patch); + } + } } \ No newline at end of file diff --git a/Editor/Build/BuildVersionBumper.cs.meta b/Editor/Build/BuildVersionBumper.cs.meta old mode 100644 new mode 100755 diff --git a/Editor/CommonEditorActions.cs b/Editor/CommonEditorActions.cs old mode 100644 new mode 100755 index 6658d3b..901fe8b --- a/Editor/CommonEditorActions.cs +++ b/Editor/CommonEditorActions.cs @@ -1,38 +1,38 @@ -using System.IO; -using RebootKitEditor.Build; -using UnityEditor; -using UnityEngine; - -namespace RebootKitEditor { - static class CommonEditorActions { - [MenuItem(REditorConsts.k_EditorMenu + "Bump minor version", false, 0)] - static void BumpMinorVersion() { - if (VersionUpdater.IncrementMinor()) { - Debug.Log("Bumped minor version."); - } else { - Debug.LogError("Failed to bump minor version."); - } - } - - [MenuItem(REditorConsts.k_EditorMenu + "Open Persistent Data Folder", false, 100)] - static void OpenPersistentDataFolder() { - string path = Application.persistentDataPath; - if (Directory.Exists(path)) { - EditorUtility.RevealInFinder(path); - } else { - Debug.LogError($"Persistent data folder does not exist: {path}"); - } - } - - [MenuItem(REditorConsts.k_EditorMenu + "Remove Persistent Data Folder", false, 1000)] - static void RemovePersistentDataFolder() { - string path = Application.persistentDataPath; - if (Directory.Exists(path)) { - Directory.Delete(path, true); - Debug.Log($"Removed persistent data folder: {path}"); - } else { - Debug.LogError($"Persistent data folder does not exist: {path}"); - } - } - } +using System.IO; +using RebootKitEditor.Build; +using UnityEditor; +using UnityEngine; + +namespace RebootKitEditor { + static class CommonEditorActions { + [MenuItem(REditorConsts.k_EditorMenu + "Bump minor version", false, 0)] + static void BumpMinorVersion() { + if (VersionUpdater.IncrementMinor()) { + Debug.Log("Bumped minor version."); + } else { + Debug.LogError("Failed to bump minor version."); + } + } + + [MenuItem(REditorConsts.k_EditorMenu + "Open Persistent Data Folder", false, 100)] + static void OpenPersistentDataFolder() { + string path = Application.persistentDataPath; + if (Directory.Exists(path)) { + EditorUtility.RevealInFinder(path); + } else { + Debug.LogError($"Persistent data folder does not exist: {path}"); + } + } + + [MenuItem(REditorConsts.k_EditorMenu + "Remove Persistent Data Folder", false, 1000)] + static void RemovePersistentDataFolder() { + string path = Application.persistentDataPath; + if (Directory.Exists(path)) { + Directory.Delete(path, true); + Debug.Log($"Removed persistent data folder: {path}"); + } else { + Debug.LogError($"Persistent data folder does not exist: {path}"); + } + } + } } \ No newline at end of file diff --git a/Editor/CommonEditorActions.cs.meta b/Editor/CommonEditorActions.cs.meta old mode 100644 new mode 100755 diff --git a/Editor/PropertyDrawers.meta b/Editor/PropertyDrawers.meta old mode 100644 new mode 100755 diff --git a/Editor/PropertyDrawers/CVarDrawer.cs b/Editor/PropertyDrawers/CVarDrawer.cs old mode 100644 new mode 100755 diff --git a/Editor/PropertyDrawers/CVarDrawer.cs.meta b/Editor/PropertyDrawers/CVarDrawer.cs.meta old mode 100644 new mode 100755 diff --git a/Editor/PropertyDrawers/ConstsPropertyDrawer.cs b/Editor/PropertyDrawers/ConstsPropertyDrawer.cs old mode 100644 new mode 100755 index 2de0a8c..eaf713e --- a/Editor/PropertyDrawers/ConstsPropertyDrawer.cs +++ b/Editor/PropertyDrawers/ConstsPropertyDrawer.cs @@ -1,38 +1,38 @@ -using RebootKit.Engine.Foundation; -using UnityEditor; -using UnityEngine; - -namespace RebootKitEditor.PropertyDrawers { - [CustomPropertyDrawer(typeof(ConstsProperty<>))] - public class ConstsPropertyDrawer : PropertyDrawer { - const string k_InlineValue = "m_InlineValue"; - const string k_Asset = "m_Asset"; - const string k_UseInlineValue = "m_UseInlineValue"; - - public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { - SerializedProperty useInlineValue = property.FindPropertyRelative(k_UseInlineValue); - SerializedProperty inlineValue = property.FindPropertyRelative(k_InlineValue); - SerializedProperty asset = property.FindPropertyRelative(k_Asset); - - EditorGUI.BeginProperty(position, label, property); - - GUILayout.BeginHorizontal(); - - EditorGUILayout.LabelField(label, EditorStyles.miniBoldLabel); - - if (useInlineValue.boolValue) { - EditorGUILayout.PropertyField(inlineValue, GUIContent.none); - } else { - EditorGUILayout.PropertyField(asset, GUIContent.none); - } - - if (GUILayout.Button(useInlineValue.boolValue ? "Inline" : "Asset", GUILayout.MaxWidth(100))) { - useInlineValue.boolValue = !useInlineValue.boolValue; - } - - GUILayout.EndHorizontal(); - - EditorGUI.EndProperty(); - } - } +using RebootKit.Engine.Foundation; +using UnityEditor; +using UnityEngine; + +namespace RebootKitEditor.PropertyDrawers { + [CustomPropertyDrawer(typeof(ConstsProperty<>))] + public class ConstsPropertyDrawer : PropertyDrawer { + const string k_InlineValue = "m_InlineValue"; + const string k_Asset = "m_Asset"; + const string k_UseInlineValue = "m_UseInlineValue"; + + public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { + SerializedProperty useInlineValue = property.FindPropertyRelative(k_UseInlineValue); + SerializedProperty inlineValue = property.FindPropertyRelative(k_InlineValue); + SerializedProperty asset = property.FindPropertyRelative(k_Asset); + + EditorGUI.BeginProperty(position, label, property); + + GUILayout.BeginHorizontal(); + + EditorGUILayout.LabelField(label, EditorStyles.miniBoldLabel); + + if (useInlineValue.boolValue) { + EditorGUILayout.PropertyField(inlineValue, GUIContent.none); + } else { + EditorGUILayout.PropertyField(asset, GUIContent.none); + } + + if (GUILayout.Button(useInlineValue.boolValue ? "Inline" : "Asset", GUILayout.MaxWidth(100))) { + useInlineValue.boolValue = !useInlineValue.boolValue; + } + + GUILayout.EndHorizontal(); + + EditorGUI.EndProperty(); + } + } } \ No newline at end of file diff --git a/Editor/PropertyDrawers/ConstsPropertyDrawer.cs.meta b/Editor/PropertyDrawers/ConstsPropertyDrawer.cs.meta old mode 100644 new mode 100755 diff --git a/Editor/PropertyDrawers/SerializableGuidDrawer.cs b/Editor/PropertyDrawers/SerializableGuidDrawer.cs old mode 100644 new mode 100755 diff --git a/Editor/PropertyDrawers/SerializableGuidDrawer.cs.meta b/Editor/PropertyDrawers/SerializableGuidDrawer.cs.meta old mode 100644 new mode 100755 diff --git a/Editor/PropertyDrawers/ValueRangeDrawer.cs b/Editor/PropertyDrawers/ValueRangeDrawer.cs old mode 100644 new mode 100755 diff --git a/Editor/PropertyDrawers/ValueRangeDrawer.cs.meta b/Editor/PropertyDrawers/ValueRangeDrawer.cs.meta old mode 100644 new mode 100755 diff --git a/Editor/REditorConsts.cs b/Editor/REditorConsts.cs old mode 100644 new mode 100755 index 0781dd2..788449c --- a/Editor/REditorConsts.cs +++ b/Editor/REditorConsts.cs @@ -1,7 +1,7 @@ -namespace RebootKitEditor { - static class REditorConsts { - internal const string k_EditorMenu = "Reboot Reality/"; - - internal const string k_OnGameRunScriptContentKey = "RebootKitEditor.OnGameRunScriptContent"; - } +namespace RebootKitEditor { + static class REditorConsts { + internal const string k_EditorMenu = "Reboot Reality/"; + + internal const string k_OnGameRunScriptContentKey = "RebootKitEditor.OnGameRunScriptContent"; + } } \ No newline at end of file diff --git a/Editor/REditorConsts.cs.meta b/Editor/REditorConsts.cs.meta old mode 100644 new mode 100755 diff --git a/Editor/RebootKitEditor.asmdef b/Editor/RebootKitEditor.asmdef old mode 100644 new mode 100755 diff --git a/Editor/RebootKitEditor.asmdef.meta b/Editor/RebootKitEditor.asmdef.meta old mode 100644 new mode 100755 diff --git a/Editor/RebootWindow.meta b/Editor/RebootWindow.meta old mode 100644 new mode 100755 diff --git a/Editor/RebootWindow/ConfigVarsView.cs b/Editor/RebootWindow/ConfigVarsView.cs old mode 100644 new mode 100755 index 5c71b55..f4308c0 --- a/Editor/RebootWindow/ConfigVarsView.cs +++ b/Editor/RebootWindow/ConfigVarsView.cs @@ -1,105 +1,105 @@ -using RebootKit.Engine.Foundation; -using RebootKit.Engine.Services.Console; -using RebootKit.Engine.UI; -using UnityEngine; -using UnityEngine.UIElements; - -namespace RebootKitEditor.RebootWindow { - public class ConfigVarsView : IView { - public void Dispose() { - } - - public VisualElement Build() { - ScrollView scrollView = new() { - style = { - flexGrow = 1 - } - }; - - ConfigVarsContainer.Init(); - - foreach (ConfigVar cvar in ConfigVarsContainer.All()) { - VisualElement varContainer = new() { - style = { - marginBottom = 8, - paddingBottom = 8, - borderBottomWidth = 1, - borderBottomColor = new Color(0.3f, 0.3f, 0.3f), - } - }; - - VisualElement valueContainer = new() { - style = { - flexDirection = FlexDirection.Row - } - }; - varContainer.Add(valueContainer); - - Label nameLabel = new(cvar.name) { - style = { - color = new Color(0.7f, 0.9f, 0.9f), - unityFontStyleAndWeight = FontStyle.Bold - } - }; - valueContainer.Add(nameLabel); - - Label valueLabel = new(cvar.ToString()) { - style = { - color = RTheme.s_FirstColor - } - }; - valueContainer.Add(valueLabel); - - if (cvar.flags.HasFlag(CVarFlags.User)) { - valueContainer.Add(CreateFlagLabel("User", new Color(0.36f, 0.41f, 0.42f))); - } - - if (cvar.flags.HasFlag(CVarFlags.Client)) { - valueContainer.Add(CreateFlagLabel("Client", new Color(0.81f, 0.29f, 0.15f))); - } - - if (cvar.flags.HasFlag(CVarFlags.Server)) { - valueContainer.Add(CreateFlagLabel("Server", new Color(0.18f, 0.64f, 0.18f))); - } - - if (cvar.flags.HasFlag(CVarFlags.ReadOnly)) { - valueContainer.Add(CreateFlagLabel("ReadOnly", new Color(0.13f, 0.07f, 0.47f))); - } - - Label descLabel = new(cvar.description) { - style = { - fontSize = 10, - color = new Color(0.7f, 0.7f, 0.7f) - } - }; - varContainer.Add(descLabel); - - scrollView.Add(varContainer); - } - - return scrollView; - } - - VisualElement CreateFlagLabel(string text, Color color) { - Label label = new(text) { - style = { - fontSize = 12, - color = new Color(0.7f, 0.7f, 0.7f), - backgroundColor = color, - paddingLeft = 4, - paddingRight = 4, - paddingTop = 4, - paddingBottom = 4, - marginLeft = 4, - marginRight = 4, - borderTopLeftRadius = 8, - borderTopRightRadius = 8, - borderBottomLeftRadius = 8, - borderBottomRightRadius = 8, - unityFontStyleAndWeight = FontStyle.Bold, - } - }; - return label; - } - } +using RebootKit.Engine.Foundation; +using RebootKit.Engine.Services.Console; +using RebootKit.Engine.UI; +using UnityEngine; +using UnityEngine.UIElements; + +namespace RebootKitEditor.RebootWindow { + public class ConfigVarsView : IView { + public void Dispose() { + } + + public VisualElement Build() { + ScrollView scrollView = new() { + style = { + flexGrow = 1 + } + }; + + ConfigVarsContainer.Init(); + + foreach (ConfigVar cvar in ConfigVarsContainer.All()) { + VisualElement varContainer = new() { + style = { + marginBottom = 8, + paddingBottom = 8, + borderBottomWidth = 1, + borderBottomColor = new Color(0.3f, 0.3f, 0.3f), + } + }; + + VisualElement valueContainer = new() { + style = { + flexDirection = FlexDirection.Row + } + }; + varContainer.Add(valueContainer); + + Label nameLabel = new(cvar.name) { + style = { + color = new Color(0.7f, 0.9f, 0.9f), + unityFontStyleAndWeight = FontStyle.Bold + } + }; + valueContainer.Add(nameLabel); + + Label valueLabel = new(cvar.ToString()) { + style = { + color = RTheme.s_FirstColor + } + }; + valueContainer.Add(valueLabel); + + if (cvar.flags.HasFlag(CVarFlags.User)) { + valueContainer.Add(CreateFlagLabel("User", new Color(0.36f, 0.41f, 0.42f))); + } + + if (cvar.flags.HasFlag(CVarFlags.Client)) { + valueContainer.Add(CreateFlagLabel("Client", new Color(0.81f, 0.29f, 0.15f))); + } + + if (cvar.flags.HasFlag(CVarFlags.Server)) { + valueContainer.Add(CreateFlagLabel("Server", new Color(0.18f, 0.64f, 0.18f))); + } + + if (cvar.flags.HasFlag(CVarFlags.ReadOnly)) { + valueContainer.Add(CreateFlagLabel("ReadOnly", new Color(0.13f, 0.07f, 0.47f))); + } + + Label descLabel = new(cvar.description) { + style = { + fontSize = 10, + color = new Color(0.7f, 0.7f, 0.7f) + } + }; + varContainer.Add(descLabel); + + scrollView.Add(varContainer); + } + + return scrollView; + } + + VisualElement CreateFlagLabel(string text, Color color) { + Label label = new(text) { + style = { + fontSize = 12, + color = new Color(0.7f, 0.7f, 0.7f), + backgroundColor = color, + paddingLeft = 4, + paddingRight = 4, + paddingTop = 4, + paddingBottom = 4, + marginLeft = 4, + marginRight = 4, + borderTopLeftRadius = 8, + borderTopRightRadius = 8, + borderBottomLeftRadius = 8, + borderBottomRightRadius = 8, + unityFontStyleAndWeight = FontStyle.Bold, + } + }; + return label; + } + } } \ No newline at end of file diff --git a/Editor/RebootWindow/ConfigVarsView.cs.meta b/Editor/RebootWindow/ConfigVarsView.cs.meta old mode 100644 new mode 100755 diff --git a/Editor/RebootWindow/GameServicesView.cs b/Editor/RebootWindow/GameServicesView.cs old mode 100644 new mode 100755 index 27282f7..daf13b9 --- a/Editor/RebootWindow/GameServicesView.cs +++ b/Editor/RebootWindow/GameServicesView.cs @@ -1,105 +1,105 @@ -using System.Collections.Generic; -using RebootKit.Engine; -using RebootKit.Engine.Foundation; -using RebootKit.Engine.UI; -using UnityEditor; -using UnityEditor.UIElements; -using UnityEngine; -using UnityEngine.UIElements; - -namespace RebootKitEditor.RebootWindow { - public class GameServicesView : IView { - VisualElement m_RootElement; - - readonly List m_ServiceEditors = new(); - - [Inject] EngineConfigAsset m_EngineConfigAsset; - - public void Dispose() { - foreach (Editor editor in m_ServiceEditors) { - if (editor != null) { - Object.DestroyImmediate(editor); - } - } - m_ServiceEditors.Clear(); - } - - public VisualElement Build() { - m_RootElement = new ScrollView(); - - // int servicesLength = m_EngineConfigAsset.services?.Length ?? 0; - // - // Label servicesAmountLabel = new($"Game services: {servicesLength}") { - // style = { - // color = new Color(0.7f, 0.9f, 0.9f), - // unityFontStyleAndWeight = FontStyle.Bold - // } - // }; - // m_RootElement.Add(servicesAmountLabel); - // - // for (int i = 0; i < servicesLength; i++) { - // ServiceAsset serviceAsset = m_EngineConfigAsset.services[i]; - // - // VisualElement serviceView = CreateServicesView(serviceAsset); - // serviceView.style.backgroundColor = i % 2 == 0 ? new Color(0.1f, 0.1f, 0.1f) : new Color(0.2f, 0.2f, 0.2f); - // m_RootElement.Add(serviceView); - // } - - return m_RootElement; - } - - VisualElement CreateServicesView(ServiceAsset serviceAsset) where T : class, IService { - VisualElement root = new() { - style = { - paddingBottom = 4, - paddingTop = 4, - paddingLeft = 4, - paddingRight = 4, - borderBottomLeftRadius = 4, - borderBottomRightRadius = 4 - } - }; - - VisualElement header = new() { - style = { - backgroundColor = new Color(0.2f, 0.2f, 0.2f), - paddingLeft = 8, - paddingRight = 8, - paddingTop = 4, - paddingBottom = 4, - borderTopLeftRadius = 4, - borderTopRightRadius = 4, - } - }; - root.Add(header); - - Label nameLabel = new(serviceAsset.name) { - style = { - color = new Color(0.7f, 0.9f, 0.9f), - unityFontStyleAndWeight = FontStyle.Bold - } - }; - header.Add(nameLabel); - - VisualElement editorView = new() { - style = { - backgroundColor = new Color(0.3f, 0.3f, 0.3f), - paddingLeft = 10, - paddingRight = 10, - paddingTop = 5, - paddingBottom = 5, - minHeight = 50 - } - }; - root.Add(editorView); - - Editor editor = Editor.CreateEditor(serviceAsset); - m_ServiceEditors.Add(editor); - - InspectorElement inspectorElement = new(editor); - editorView.Add(inspectorElement); - - return root; - } - } +using System.Collections.Generic; +using RebootKit.Engine; +using RebootKit.Engine.Foundation; +using RebootKit.Engine.UI; +using UnityEditor; +using UnityEditor.UIElements; +using UnityEngine; +using UnityEngine.UIElements; + +namespace RebootKitEditor.RebootWindow { + public class GameServicesView : IView { + VisualElement m_RootElement; + + readonly List m_ServiceEditors = new(); + + [Inject] EngineConfigAsset m_EngineConfigAsset; + + public void Dispose() { + foreach (Editor editor in m_ServiceEditors) { + if (editor != null) { + Object.DestroyImmediate(editor); + } + } + m_ServiceEditors.Clear(); + } + + public VisualElement Build() { + m_RootElement = new ScrollView(); + + // int servicesLength = m_EngineConfigAsset.services?.Length ?? 0; + // + // Label servicesAmountLabel = new($"Game services: {servicesLength}") { + // style = { + // color = new Color(0.7f, 0.9f, 0.9f), + // unityFontStyleAndWeight = FontStyle.Bold + // } + // }; + // m_RootElement.Add(servicesAmountLabel); + // + // for (int i = 0; i < servicesLength; i++) { + // ServiceAsset serviceAsset = m_EngineConfigAsset.services[i]; + // + // VisualElement serviceView = CreateServicesView(serviceAsset); + // serviceView.style.backgroundColor = i % 2 == 0 ? new Color(0.1f, 0.1f, 0.1f) : new Color(0.2f, 0.2f, 0.2f); + // m_RootElement.Add(serviceView); + // } + + return m_RootElement; + } + + VisualElement CreateServicesView(ServiceAsset serviceAsset) where T : class, IService { + VisualElement root = new() { + style = { + paddingBottom = 4, + paddingTop = 4, + paddingLeft = 4, + paddingRight = 4, + borderBottomLeftRadius = 4, + borderBottomRightRadius = 4 + } + }; + + VisualElement header = new() { + style = { + backgroundColor = new Color(0.2f, 0.2f, 0.2f), + paddingLeft = 8, + paddingRight = 8, + paddingTop = 4, + paddingBottom = 4, + borderTopLeftRadius = 4, + borderTopRightRadius = 4, + } + }; + root.Add(header); + + Label nameLabel = new(serviceAsset.name) { + style = { + color = new Color(0.7f, 0.9f, 0.9f), + unityFontStyleAndWeight = FontStyle.Bold + } + }; + header.Add(nameLabel); + + VisualElement editorView = new() { + style = { + backgroundColor = new Color(0.3f, 0.3f, 0.3f), + paddingLeft = 10, + paddingRight = 10, + paddingTop = 5, + paddingBottom = 5, + minHeight = 50 + } + }; + root.Add(editorView); + + Editor editor = Editor.CreateEditor(serviceAsset); + m_ServiceEditors.Add(editor); + + InspectorElement inspectorElement = new(editor); + editorView.Add(inspectorElement); + + return root; + } + } } \ No newline at end of file diff --git a/Editor/RebootWindow/GameServicesView.cs.meta b/Editor/RebootWindow/GameServicesView.cs.meta old mode 100644 new mode 100755 diff --git a/Editor/RebootWindow/HomeView.cs b/Editor/RebootWindow/HomeView.cs old mode 100644 new mode 100755 index c0fa505..26d3fdb --- a/Editor/RebootWindow/HomeView.cs +++ b/Editor/RebootWindow/HomeView.cs @@ -1,126 +1,126 @@ -using RebootKit.Engine.Main; -using RebootKit.Engine.Services.Console; -using RebootKit.Engine.UI; -using UnityEditor; -using UnityEngine; -using UnityEngine.UIElements; - -namespace RebootKitEditor.RebootWindow { - public class HomeView : IView { - public void Dispose() { - } - - public VisualElement Build() { - VisualElement rootContainer = new() { - style = { - flexGrow = 1, - fontSize = 14 - } - }; - - Label label = new($"{Application.productName} {Application.version}") { - style = { - fontSize = 18, - unityFontStyleAndWeight = FontStyle.Bold - } - }; - rootContainer.Add(label); - - VisualElement persistentPathContainer = new() { - style = { - marginTop = 8, - marginBottom = 8, - paddingLeft = 4, - paddingRight = 4, - paddingTop = 4, - paddingBottom = 4, - borderLeftWidth = 1, - borderLeftColor = new Color(0.3f, 0.3f, 0.3f), - flexDirection = FlexDirection.Row, - } - }; - - Label persistentPathLabel = new($"Persistent Path: {Application.persistentDataPath}") { - style = { - fontSize = 12, - color = new Color(0.7f, 0.9f, 0.9f) - } - }; - persistentPathContainer.Add(persistentPathLabel); - - Button openPersistentPathButton = new(() => { Application.OpenURL(Application.persistentDataPath); }) { - style = { - fontSize = 12, - width = 48 - }, - text = "Open" - }; - persistentPathContainer.Add(openPersistentPathButton); - - rootContainer.Add(persistentPathContainer); - - Label onGameRunScriptLabel = new("On Game Run Script (User):") { - style = { - fontSize = 12, - color = new Color(0.7f, 0.9f, 0.9f) - } - }; - rootContainer.Add(onGameRunScriptLabel); - - TextField onGameRunScriptTextField = new() { - style = { - fontSize = 12, - }, - multiline = true, - value = EditorPrefs.GetString(REditorConsts.k_OnGameRunScriptContentKey, "") - }; - - onGameRunScriptTextField.RegisterValueChangedCallback(evt => { - EditorPrefs.SetString(REditorConsts.k_OnGameRunScriptContentKey, evt.newValue); - }); - rootContainer.Add(onGameRunScriptTextField); - - Label consoleCommandsLabel = new("Console Commands:") { - style = { - fontSize = 12, - color = new Color(0.7f, 0.9f, 0.9f) - } - }; - rootContainer.Add(consoleCommandsLabel); - - ConsoleService.ConsoleCommand[] consoleCommands = ConsoleService.GenerateCommandsToRegister(); - foreach (ConsoleService.ConsoleCommand consoleCommand in consoleCommands) { - VisualElement commandContainer = new() { - style = { - flexDirection = FlexDirection.Row, - marginTop = 4, - marginBottom = 4, - paddingLeft = 4, - paddingRight = 4, - paddingTop = 4, - paddingBottom = 4, - } - }; - Label commandLabel = new(consoleCommand.name) { - style = { - fontSize = 12, - color = new Color(0.7f, 0.9f, 0.9f) - } - }; - commandContainer.Add(commandLabel); - - Label descriptionLabel = new(consoleCommand.description) { - style = { - fontSize = 12, - color = new Color(0.5f, 0.7f, 0.7f) - } - }; - commandContainer.Add(descriptionLabel); - - rootContainer.Add(commandContainer); - } - - return rootContainer; - } - } +using RebootKit.Engine.Main; +using RebootKit.Engine.Services.Console; +using RebootKit.Engine.UI; +using UnityEditor; +using UnityEngine; +using UnityEngine.UIElements; + +namespace RebootKitEditor.RebootWindow { + public class HomeView : IView { + public void Dispose() { + } + + public VisualElement Build() { + VisualElement rootContainer = new() { + style = { + flexGrow = 1, + fontSize = 14 + } + }; + + Label label = new($"{Application.productName} {Application.version}") { + style = { + fontSize = 18, + unityFontStyleAndWeight = FontStyle.Bold + } + }; + rootContainer.Add(label); + + VisualElement persistentPathContainer = new() { + style = { + marginTop = 8, + marginBottom = 8, + paddingLeft = 4, + paddingRight = 4, + paddingTop = 4, + paddingBottom = 4, + borderLeftWidth = 1, + borderLeftColor = new Color(0.3f, 0.3f, 0.3f), + flexDirection = FlexDirection.Row, + } + }; + + Label persistentPathLabel = new($"Persistent Path: {Application.persistentDataPath}") { + style = { + fontSize = 12, + color = new Color(0.7f, 0.9f, 0.9f) + } + }; + persistentPathContainer.Add(persistentPathLabel); + + Button openPersistentPathButton = new(() => { Application.OpenURL(Application.persistentDataPath); }) { + style = { + fontSize = 12, + width = 48 + }, + text = "Open" + }; + persistentPathContainer.Add(openPersistentPathButton); + + rootContainer.Add(persistentPathContainer); + + Label onGameRunScriptLabel = new("On Game Run Script (User):") { + style = { + fontSize = 12, + color = new Color(0.7f, 0.9f, 0.9f) + } + }; + rootContainer.Add(onGameRunScriptLabel); + + TextField onGameRunScriptTextField = new() { + style = { + fontSize = 12, + }, + multiline = true, + value = EditorPrefs.GetString(REditorConsts.k_OnGameRunScriptContentKey, "") + }; + + onGameRunScriptTextField.RegisterValueChangedCallback(evt => { + EditorPrefs.SetString(REditorConsts.k_OnGameRunScriptContentKey, evt.newValue); + }); + rootContainer.Add(onGameRunScriptTextField); + + Label consoleCommandsLabel = new("Console Commands:") { + style = { + fontSize = 12, + color = new Color(0.7f, 0.9f, 0.9f) + } + }; + rootContainer.Add(consoleCommandsLabel); + + ConsoleService.ConsoleCommand[] consoleCommands = ConsoleService.GenerateCommandsToRegister(); + foreach (ConsoleService.ConsoleCommand consoleCommand in consoleCommands) { + VisualElement commandContainer = new() { + style = { + flexDirection = FlexDirection.Row, + marginTop = 4, + marginBottom = 4, + paddingLeft = 4, + paddingRight = 4, + paddingTop = 4, + paddingBottom = 4, + } + }; + Label commandLabel = new(consoleCommand.name) { + style = { + fontSize = 12, + color = new Color(0.7f, 0.9f, 0.9f) + } + }; + commandContainer.Add(commandLabel); + + Label descriptionLabel = new(consoleCommand.description) { + style = { + fontSize = 12, + color = new Color(0.5f, 0.7f, 0.7f) + } + }; + commandContainer.Add(descriptionLabel); + + rootContainer.Add(commandContainer); + } + + return rootContainer; + } + } } \ No newline at end of file diff --git a/Editor/RebootWindow/HomeView.cs.meta b/Editor/RebootWindow/HomeView.cs.meta old mode 100644 new mode 100755 diff --git a/Editor/RebootWindow/RebootEditorWindow.cs b/Editor/RebootWindow/RebootEditorWindow.cs old mode 100644 new mode 100755 index 3d95c60..14cb6dc --- a/Editor/RebootWindow/RebootEditorWindow.cs +++ b/Editor/RebootWindow/RebootEditorWindow.cs @@ -1,76 +1,76 @@ -using RebootKit.Engine; -using RebootKit.Engine.Foundation; -using UnityEditor; -using UnityEngine; -using UnityEngine.UIElements; -using Logger = RebootKit.Engine.Foundation.Logger; - -namespace RebootKitEditor.RebootWindow { - static class RTheme { - public static readonly Color s_FirstColor = ColorFromHex("#B9B8B9"); - public static readonly Color s_SecondColor = ColorFromHex("#6B6B6B"); - public static readonly Color s_BackgroundPrimaryColor = EditorGUIUtility.isProSkin ? ColorFromHex("#1E1E1E") : ColorFromHex("#F0F0F0"); - public static readonly Color s_BackgroundSecondaryColor = ColorFromHex("#242126"); - public static readonly Color s_TextColor = ColorFromHex("#696969"); - - static Color ColorFromHex(string hex) { - if (ColorUtility.TryParseHtmlString(hex, out Color color)) { - return color; - } else { - Debug.LogError($"Failed to parse color from hex: {hex}"); - return Color.white; - } - } - } - - public class RebootEditorWindow : EditorWindow { - static readonly Logger s_logger = new(nameof(RebootEditorWindow)); - - EngineConfigAsset m_EngineConfigAsset; - DIContext m_DIContext; - - VisualElement m_RootElement; - TabView m_TabView; - - [MenuItem(REditorConsts.k_EditorMenu + "RebootKit")] - public static void ShowWindow() { - RebootEditorWindow window = GetWindow($"RebootKit - {Application.productName}"); - window.Show(); - } - - void OnEnable() { - m_EngineConfigAsset = Resources.Load(RConsts.k_EngineConfigResourcesPath); - if (m_EngineConfigAsset == null) { - EngineConfigAsset newConfig = CreateInstance(); - newConfig.name = RConsts.k_EngineConfigAssetName; - AssetDatabase.CreateAsset(newConfig, RConsts.k_EngineConfigAssetPath); - AssetDatabase.SaveAssets(); - AssetDatabase.Refresh(); - s_logger.Info($"Created new engine config asset at: {RConsts.k_EngineConfigAssetPath}"); - - m_EngineConfigAsset = Resources.Load(RConsts.k_EngineConfigResourcesPath); - if (m_EngineConfigAsset == null) { - s_logger.Error($"Couldn't load engine config from resources: {RConsts.k_EngineConfigResourcesPath}"); - return; - } - } - - m_DIContext = new DIContext(); - m_DIContext.Bind(this); - m_DIContext.Bind(m_EngineConfigAsset); - - m_TabView = m_DIContext.Create(); - m_TabView.AddTab("Home", m_DIContext.Create()); - m_TabView.AddTab("Config Vars", m_DIContext.Create()); - m_TabView.AddTab("Game Services", m_DIContext.Create()); - m_TabView.AddTab("Worlds", m_DIContext.Create()); - } - - void CreateGUI() { - m_RootElement = rootVisualElement; - m_RootElement.Clear(); - - m_RootElement.Add(m_TabView.Build()); - } - } +using RebootKit.Engine; +using RebootKit.Engine.Foundation; +using UnityEditor; +using UnityEngine; +using UnityEngine.UIElements; +using Logger = RebootKit.Engine.Foundation.Logger; + +namespace RebootKitEditor.RebootWindow { + static class RTheme { + public static readonly Color s_FirstColor = ColorFromHex("#B9B8B9"); + public static readonly Color s_SecondColor = ColorFromHex("#6B6B6B"); + public static readonly Color s_BackgroundPrimaryColor = EditorGUIUtility.isProSkin ? ColorFromHex("#1E1E1E") : ColorFromHex("#F0F0F0"); + public static readonly Color s_BackgroundSecondaryColor = ColorFromHex("#242126"); + public static readonly Color s_TextColor = ColorFromHex("#696969"); + + static Color ColorFromHex(string hex) { + if (ColorUtility.TryParseHtmlString(hex, out Color color)) { + return color; + } else { + Debug.LogError($"Failed to parse color from hex: {hex}"); + return Color.white; + } + } + } + + public class RebootEditorWindow : EditorWindow { + static readonly Logger s_logger = new(nameof(RebootEditorWindow)); + + EngineConfigAsset m_EngineConfigAsset; + DIContext m_DIContext; + + VisualElement m_RootElement; + TabView m_TabView; + + [MenuItem(REditorConsts.k_EditorMenu + "RebootKit")] + public static void ShowWindow() { + RebootEditorWindow window = GetWindow($"RebootKit - {Application.productName}"); + window.Show(); + } + + void OnEnable() { + m_EngineConfigAsset = Resources.Load(RConsts.k_EngineConfigResourcesPath); + if (m_EngineConfigAsset == null) { + EngineConfigAsset newConfig = CreateInstance(); + newConfig.name = RConsts.k_EngineConfigAssetName; + AssetDatabase.CreateAsset(newConfig, RConsts.k_EngineConfigAssetPath); + AssetDatabase.SaveAssets(); + AssetDatabase.Refresh(); + s_logger.Info($"Created new engine config asset at: {RConsts.k_EngineConfigAssetPath}"); + + m_EngineConfigAsset = Resources.Load(RConsts.k_EngineConfigResourcesPath); + if (m_EngineConfigAsset == null) { + s_logger.Error($"Couldn't load engine config from resources: {RConsts.k_EngineConfigResourcesPath}"); + return; + } + } + + m_DIContext = new DIContext(); + m_DIContext.Bind(this); + m_DIContext.Bind(m_EngineConfigAsset); + + m_TabView = m_DIContext.Create(); + m_TabView.AddTab("Home", m_DIContext.Create()); + m_TabView.AddTab("Config Vars", m_DIContext.Create()); + m_TabView.AddTab("Game Services", m_DIContext.Create()); + m_TabView.AddTab("Worlds", m_DIContext.Create()); + } + + void CreateGUI() { + m_RootElement = rootVisualElement; + m_RootElement.Clear(); + + m_RootElement.Add(m_TabView.Build()); + } + } } \ No newline at end of file diff --git a/Editor/RebootWindow/RebootEditorWindow.cs.meta b/Editor/RebootWindow/RebootEditorWindow.cs.meta old mode 100644 new mode 100755 diff --git a/Editor/RebootWindow/TabView.cs b/Editor/RebootWindow/TabView.cs old mode 100644 new mode 100755 index 6f22875..cd97671 --- a/Editor/RebootWindow/TabView.cs +++ b/Editor/RebootWindow/TabView.cs @@ -1,127 +1,127 @@ -using System.Collections.Generic; -using RebootKit.Engine.UI; -using UnityEngine; -using UnityEngine.Assertions; -using UnityEngine.UIElements; - -namespace RebootKitEditor.RebootWindow { - public class TabView : IView { - struct Tab { - public string name; - public IView view; - public VisualElement container; - } - - readonly List m_Tabs = new(); - readonly List m_TabContents = new(); - readonly List