Нашёл причину утечки памяти
This commit is contained in:
1 parent
60c28f54f2
commit
320847af5b
229 files changed
+3094
-18282
No files matched your search
-38
@@ -1,38 +0,0 @@
|
||||
|
||||
|
||||
// retard-generated
|
||||
|
||||
using Code.Infrastructure.UI;
|
||||
using Code.Infrastructure.EventBus;
|
||||
using Code.Infrastructure.StateMachine;
|
||||
|
||||
namespace Code.Example.Race.UI
|
||||
{
|
||||
public partial class PlayerScoreCounter
|
||||
{
|
||||
|
||||
public override void FireCreatedEvent()
|
||||
{
|
||||
_eventBus.RaiseEvent<IPlayerScoreCounterCreatedHandle>(h => h.PlayerScoreCounterCreated(this));
|
||||
}
|
||||
|
||||
public override void FireRemovedEvent()
|
||||
{
|
||||
_eventBus.RaiseEvent<IPlayerScoreCounterRemovedHandle>(h => h.PlayerScoreCounterRemoved());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public interface IPlayerScoreCounterCreatedHandle : IGlobalSubscriber
|
||||
{
|
||||
void PlayerScoreCounterCreated(UIPanel panel);
|
||||
}
|
||||
|
||||
public interface IPlayerScoreCounterRemovedHandle : IGlobalSubscriber
|
||||
{
|
||||
void PlayerScoreCounterRemoved();
|
||||
}
|
||||
|
||||
}
|
||||
-2
@@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3e7bcd1ea1d0c9d409ebc2fbfb7bcbda
|
||||
@@ -1,38 +0,0 @@
|
||||
|
||||
|
||||
// retard-generated
|
||||
|
||||
using Code.Infrastructure.UI;
|
||||
using Code.Infrastructure.EventBus;
|
||||
using Code.Infrastructure.StateMachine;
|
||||
|
||||
namespace Code.Example.Race.UI
|
||||
{
|
||||
public partial class PlayerScores
|
||||
{
|
||||
|
||||
public override void FireCreatedEvent()
|
||||
{
|
||||
_eventBus.RaiseEvent<IPlayerScoresCreatedHandle>(h => h.PlayerScoresCreated(this));
|
||||
}
|
||||
|
||||
public override void FireRemovedEvent()
|
||||
{
|
||||
_eventBus.RaiseEvent<IPlayerScoresRemovedHandle>(h => h.PlayerScoresRemoved());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public interface IPlayerScoresCreatedHandle : IGlobalSubscriber
|
||||
{
|
||||
void PlayerScoresCreated(UIPanel panel);
|
||||
}
|
||||
|
||||
public interface IPlayerScoresRemovedHandle : IGlobalSubscriber
|
||||
{
|
||||
void PlayerScoresRemoved();
|
||||
}
|
||||
|
||||
}
|
||||
-2
@@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ed4ee430bfb443e45888c6b7c8d9737a
|
||||
@@ -1,38 +0,0 @@
|
||||
|
||||
|
||||
// retard-generated
|
||||
|
||||
using Code.Infrastructure.UI;
|
||||
using Code.Infrastructure.EventBus;
|
||||
using Code.Infrastructure.StateMachine;
|
||||
|
||||
namespace Code.Example.Race.UI
|
||||
{
|
||||
public partial class WinScreen
|
||||
{
|
||||
|
||||
public override void FireCreatedEvent()
|
||||
{
|
||||
_eventBus.RaiseEvent<IWinScreenCreatedHandle>(h => h.WinScreenCreated(this));
|
||||
}
|
||||
|
||||
public override void FireRemovedEvent()
|
||||
{
|
||||
_eventBus.RaiseEvent<IWinScreenRemovedHandle>(h => h.WinScreenRemoved());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public interface IWinScreenCreatedHandle : IGlobalSubscriber
|
||||
{
|
||||
void WinScreenCreated(UIPanel panel);
|
||||
}
|
||||
|
||||
public interface IWinScreenRemovedHandle : IGlobalSubscriber
|
||||
{
|
||||
void WinScreenRemoved();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 316bf9eb00546714d8ae3e96b0f563f7
|
||||
@@ -3,12 +3,10 @@
|
||||
#pragma warning disable CS0105
|
||||
using Code.Infrastructure.StateMachine;
|
||||
|
||||
using Code.Infrastructure.App.States;
|
||||
|
||||
using Code.Example.Platformer;
|
||||
|
||||
using Code.Infrastructure.App.States;
|
||||
|
||||
using Code.Infrastructure.App.States;
|
||||
|
||||
using Code.Infrastructure.App.States;
|
||||
|
||||
#pragma warning restore CS0105
|
||||
@@ -21,18 +19,15 @@ public partial class AppStateMachine : AbstractStateMachine<Code.Infrastructure.
|
||||
public AppStateMachine(Code.Infrastructure.App.AppStateMachineContext context, EventBus.EventBus eventBus) : base(context)
|
||||
{
|
||||
|
||||
var stateBootstrapState = new BootstrapState(StateMachineContext,eventBus);
|
||||
States.Add(stateBootstrapState.myState, stateBootstrapState);
|
||||
|
||||
var statePlatformerState = new PlatformerState(StateMachineContext,eventBus);
|
||||
States.Add(statePlatformerState.myState, statePlatformerState);
|
||||
|
||||
var stateMainMenuState = new MainMenuState(StateMachineContext,eventBus);
|
||||
States.Add(stateMainMenuState.myState, stateMainMenuState);
|
||||
|
||||
var stateGameplayState = new GameplayState(StateMachineContext,eventBus);
|
||||
States.Add(stateGameplayState.myState, stateGameplayState);
|
||||
|
||||
var stateBootstrapState = new BootstrapState(StateMachineContext,eventBus);
|
||||
States.Add(stateBootstrapState.myState, stateBootstrapState);
|
||||
|
||||
}
|
||||
|
||||
protected override bool CheckTransitionAllowed(Code.Infrastructure.App.AppStates nextState) => AllowedStates.HasFlag(nextState);
|
||||
|
||||
-23
@@ -1,23 +0,0 @@
|
||||
|
||||
|
||||
// retard-generated
|
||||
|
||||
using Code.Infrastructure.StateMachine;
|
||||
|
||||
namespace Code.Infrastructure.App.States
|
||||
{
|
||||
public partial class GameplayState : BaseState<Code.Infrastructure.App.AppStates, Code.Infrastructure.App.AppStateMachineContext>
|
||||
{
|
||||
|
||||
protected override void _fireEnterState()
|
||||
{
|
||||
EventBus.RaiseEvent<IEnterStateHandle<Code.Infrastructure.App.States.GameplayState>>(h => h.EnterState());
|
||||
}
|
||||
|
||||
protected override void _fireExitState()
|
||||
{
|
||||
EventBus.RaiseEvent<IExitStateHandle<Code.Infrastructure.App.States.GameplayState>>(h => h.ExitState());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
-2
@@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ea098a6fe9bfd164895db3056277a55d
|
||||
+3
-3
@@ -17,12 +17,12 @@ public partial class CameraStateMachine : AbstractStateMachine<Code.Infrastructu
|
||||
public CameraStateMachine(Code.Infrastructure.Camera.CameraStateMachineContext context, EventBus.EventBus eventBus) : base(context)
|
||||
{
|
||||
|
||||
var stateNoneCameraState = new NoneCameraState(StateMachineContext,eventBus);
|
||||
States.Add(stateNoneCameraState.myState, stateNoneCameraState);
|
||||
|
||||
var stateThirdPersonState = new ThirdPersonState(StateMachineContext,eventBus);
|
||||
States.Add(stateThirdPersonState.myState, stateThirdPersonState);
|
||||
|
||||
var stateNoneCameraState = new NoneCameraState(StateMachineContext,eventBus);
|
||||
States.Add(stateNoneCameraState.myState, stateNoneCameraState);
|
||||
|
||||
}
|
||||
|
||||
protected override bool CheckTransitionAllowed(Code.Infrastructure.Camera.CameraMode nextState) => AllowedStates.HasFlag(nextState);
|
||||
|
||||
+2
-3
@@ -21,15 +21,14 @@ namespace Code.Infrastructure.UI.Panels
|
||||
_eventBus.RaiseEvent<ILoadingPanelRemovedHandle>(h => h.LoadingPanelRemoved());
|
||||
}
|
||||
|
||||
protected override void FireOpenedEvent()
|
||||
private void FireOpenedEvent()
|
||||
{
|
||||
_eventBus.RaiseEvent<ILoadingPanelOpenedHandle>(h => h.LoadingPanelOpened(this));
|
||||
}
|
||||
|
||||
protected override void FireClosedEvent()
|
||||
private void FireClosedEvent()
|
||||
{
|
||||
_eventBus.RaiseEvent<ILoadingPanelClosedHandle>(h => h.LoadingPanelClosed());
|
||||
base.FireClosedEvent();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
-22
@@ -20,17 +20,6 @@ namespace Code.Infrastructure.UI.Panels
|
||||
{
|
||||
_eventBus.RaiseEvent<ILogoPanelRemovedHandle>(h => h.LogoPanelRemoved());
|
||||
}
|
||||
|
||||
protected override void FireOpenedEvent()
|
||||
{
|
||||
_eventBus.RaiseEvent<ILogoPanelOpenedHandle>(h => h.LogoPanelOpened(this));
|
||||
}
|
||||
|
||||
protected override void FireClosedEvent()
|
||||
{
|
||||
_eventBus.RaiseEvent<ILogoPanelClosedHandle>(h => h.LogoPanelClosed());
|
||||
base.FireClosedEvent();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -45,16 +34,5 @@ namespace Code.Infrastructure.UI.Panels
|
||||
{
|
||||
void LogoPanelRemoved();
|
||||
}
|
||||
|
||||
|
||||
public interface ILogoPanelOpenedHandle : IGlobalSubscriber
|
||||
{
|
||||
void LogoPanelOpened(UIPanel panel);
|
||||
}
|
||||
|
||||
public interface ILogoPanelClosedHandle : IGlobalSubscriber
|
||||
{
|
||||
void LogoPanelClosed();
|
||||
}
|
||||
|
||||
}
|
||||
-22
@@ -20,17 +20,6 @@ namespace Code.Infrastructure.UI.Panels
|
||||
{
|
||||
_eventBus.RaiseEvent<IMenuChoosePanelRemovedHandle>(h => h.MenuChoosePanelRemoved());
|
||||
}
|
||||
|
||||
protected override void FireOpenedEvent()
|
||||
{
|
||||
_eventBus.RaiseEvent<IMenuChoosePanelOpenedHandle>(h => h.MenuChoosePanelOpened(this));
|
||||
}
|
||||
|
||||
protected override void FireClosedEvent()
|
||||
{
|
||||
_eventBus.RaiseEvent<IMenuChoosePanelClosedHandle>(h => h.MenuChoosePanelClosed());
|
||||
base.FireClosedEvent();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -45,16 +34,5 @@ namespace Code.Infrastructure.UI.Panels
|
||||
{
|
||||
void MenuChoosePanelRemoved();
|
||||
}
|
||||
|
||||
|
||||
public interface IMenuChoosePanelOpenedHandle : IGlobalSubscriber
|
||||
{
|
||||
void MenuChoosePanelOpened(UIPanel panel);
|
||||
}
|
||||
|
||||
public interface IMenuChoosePanelClosedHandle : IGlobalSubscriber
|
||||
{
|
||||
void MenuChoosePanelClosed();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,20 +1,19 @@
|
||||
|
||||
#pragma warning disable CS0105
|
||||
using Code.Example.Platformer.Entity;
|
||||
using Code.Infrastructure.Input;
|
||||
using Code.Example.Race.Racer;
|
||||
using Code.Infrastructure.Audio;
|
||||
using Code.Infrastructure.SceneLoader;
|
||||
using Code.Infrastructure.Volume;
|
||||
using Code.Infrastructure.UI;
|
||||
using Code.Infrastructure.Audio;
|
||||
using Code.Infrastructure.Audio;
|
||||
using Code.Infrastructure.SceneLoader;
|
||||
using Code.Infrastructure.Camera;
|
||||
using Code.Infrastructure.Camera;
|
||||
using Code.Example.Platformer.Entity;
|
||||
using Code.Infrastructure.UI;
|
||||
using Code.Infrastructure.Input;
|
||||
using Code.Infrastructure.Configs;
|
||||
using Code.Infrastructure.UI;
|
||||
using Code.Infrastructure.Audio;
|
||||
using Code.Infrastructure.Audio;
|
||||
using Code.Example.Platformer.Entity;
|
||||
using Code.Infrastructure.Camera;
|
||||
using Code.Infrastructure.Audio;
|
||||
using Code.Infrastructure.Audio;
|
||||
using Code.Infrastructure.Camera;
|
||||
using Code.Infrastructure.UI;
|
||||
using Code.Example.Platformer.Entity;
|
||||
|
||||
using UnityEngine;
|
||||
#pragma warning restore CS0105
|
||||
@@ -28,36 +27,34 @@ using Code.Infrastructure.Audio;
|
||||
{
|
||||
SystemConfigsReferences systemConfigsReferences = Resources.Load<SystemConfigsReferences>("SystemConfigsReferences");
|
||||
|
||||
_singleConfigReferences.Add(typeof(Code.Example.Platformer.Entity.PlatformerPlayerSettingsConfig), systemConfigsReferences.PlatformerPlayerSettings);
|
||||
|
||||
_singleConfigReferences.Add(typeof(Code.Infrastructure.Input.InputServiceConfig), systemConfigsReferences.InputService);
|
||||
|
||||
_multipleConfigReferences.Add(typeof(Code.Example.Race.Racer.RacerSettingsConfig), systemConfigsReferences.RacerSettings);
|
||||
|
||||
_singleConfigReferences.Add(typeof(Code.Infrastructure.Audio.AudioSourcePrefabConfig), systemConfigsReferences.AudioSourcePrefab);
|
||||
_multipleConfigReferences.Add(typeof(Code.Infrastructure.SceneLoader.SceneInfoConfig), systemConfigsReferences.SceneInfo);
|
||||
|
||||
_multipleConfigReferences.Add(typeof(Code.Infrastructure.Volume.VolumeSettingsConfig), systemConfigsReferences.VolumeSettings);
|
||||
|
||||
_multipleConfigReferences.Add(typeof(Code.Infrastructure.UI.UIPanelSettingsConfig), systemConfigsReferences.UIPanelSettings);
|
||||
|
||||
_multipleConfigReferences.Add(typeof(Code.Infrastructure.Audio.AudioSourceSettingsConfig), systemConfigsReferences.AudioSourceSettings);
|
||||
|
||||
_multipleConfigReferences.Add(typeof(Code.Infrastructure.Audio.AudioInfoConfig), systemConfigsReferences.AudioInfo);
|
||||
|
||||
_multipleConfigReferences.Add(typeof(Code.Infrastructure.SceneLoader.SceneInfoConfig), systemConfigsReferences.SceneInfo);
|
||||
|
||||
_multipleConfigReferences.Add(typeof(Code.Infrastructure.Camera.CameraSettingsConfig), systemConfigsReferences.CameraSettings);
|
||||
|
||||
_singleConfigReferences.Add(typeof(Code.Infrastructure.Camera.GameCameraConfig), systemConfigsReferences.GameCamera);
|
||||
|
||||
_multipleConfigReferences.Add(typeof(Code.Example.Platformer.Entity.PlatformerEntitySettingsConfig), systemConfigsReferences.PlatformerEntitySettings);
|
||||
|
||||
_singleConfigReferences.Add(typeof(Code.Infrastructure.UI.CanvasSettingsConfig), systemConfigsReferences.CanvasSettings);
|
||||
_singleConfigReferences.Add(typeof(Code.Infrastructure.Input.InputServiceConfig), systemConfigsReferences.InputService);
|
||||
|
||||
_multipleConfigReferences.Add(typeof(Code.Infrastructure.Configs.LayerMasksConfigConfig), systemConfigsReferences.LayerMasksConfig);
|
||||
|
||||
_multipleConfigReferences.Add(typeof(Code.Infrastructure.UI.UIPanelSettingsConfig), systemConfigsReferences.UIPanelSettings);
|
||||
|
||||
_singleConfigReferences.Add(typeof(Code.Infrastructure.Audio.AudioSourcePrefabConfig), systemConfigsReferences.AudioSourcePrefab);
|
||||
|
||||
_multipleConfigReferences.Add(typeof(Code.Infrastructure.Audio.AudioSourceSettingsConfig), systemConfigsReferences.AudioSourceSettings);
|
||||
|
||||
_singleConfigReferences.Add(typeof(Code.Example.Platformer.Entity.PlatformerPlayerSettingsConfig), systemConfigsReferences.PlatformerPlayerSettings);
|
||||
|
||||
_multipleConfigReferences.Add(typeof(Code.Infrastructure.Camera.CameraSettingsConfig), systemConfigsReferences.CameraSettings);
|
||||
|
||||
_multipleConfigReferences.Add(typeof(Code.Infrastructure.Audio.AudioInfoConfig), systemConfigsReferences.AudioInfo);
|
||||
|
||||
_singleConfigReferences.Add(typeof(Code.Infrastructure.Audio.AudioMixerConfigConfig), systemConfigsReferences.AudioMixerConfig);
|
||||
|
||||
_singleConfigReferences.Add(typeof(Code.Infrastructure.Camera.GameCameraConfig), systemConfigsReferences.GameCamera);
|
||||
|
||||
_singleConfigReferences.Add(typeof(Code.Infrastructure.UI.CanvasSettingsConfig), systemConfigsReferences.CanvasSettings);
|
||||
|
||||
_multipleConfigReferences.Add(typeof(Code.Example.Platformer.Entity.PlatformerEntitySettingsConfig), systemConfigsReferences.PlatformerEntitySettings);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
|
||||
#pragma warning disable CS0105
|
||||
using Code.Example.Race.Racer;
|
||||
using UnityEngine.AddressableAssets;
|
||||
|
||||
using UnityEngine;
|
||||
using UnityEngine.AddressableAssets;
|
||||
|
||||
namespace Code.Example.Race.Racer{
|
||||
#pragma warning restore CS0105
|
||||
|
||||
[CreateAssetMenu(fileName = "RacerSettingsConfig", menuName = "Configs/Gameplay/RacerSettings")]
|
||||
|
||||
public class RacerSettingsConfig : ScriptableObject
|
||||
{
|
||||
public Code.Example.Race.Racer.RacerData racerData;
|
||||
public UnityEngine.AddressableAssets.AssetReference prefabReference;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0bc65efb4c6c6c2838e6dc00bdc37ea9
|
||||
@@ -14,12 +14,6 @@ partial void SetupScenesInfo(){
|
||||
_scenesActions.Add(SceneId.MainMenu,() => _eventBus.RaiseEvent<IOnMainMenuSceneLoadedHandler>(h=> h.OnMainMenuSceneLoaded()));
|
||||
|
||||
|
||||
_scenesActions.Add(SceneId.Gameplay,() => _eventBus.RaiseEvent<IOnGameplaySceneLoadedHandler>(h=> h.OnGameplaySceneLoaded()));
|
||||
|
||||
|
||||
_scenesActions.Add(SceneId.SoundTest,() => _eventBus.RaiseEvent<IOnSoundTestSceneLoadedHandler>(h=> h.OnSoundTestSceneLoaded()));
|
||||
|
||||
|
||||
_scenesActions.Add(SceneId.Platformer,() => _eventBus.RaiseEvent<IOnPlatformerSceneLoadedHandler>(h=> h.OnPlatformerSceneLoaded()));
|
||||
|
||||
|
||||
@@ -37,18 +31,6 @@ partial void SetupScenesInfo(){
|
||||
void OnMainMenuSceneInitialized(Reflex.Core.Container container); // Until its fixed
|
||||
}
|
||||
|
||||
public interface IOnGameplaySceneLoadedHandler : IGlobalSubscriber
|
||||
{
|
||||
void OnGameplaySceneLoaded();
|
||||
void OnGameplaySceneInitialized(Reflex.Core.Container container); // Until its fixed
|
||||
}
|
||||
|
||||
public interface IOnSoundTestSceneLoadedHandler : IGlobalSubscriber
|
||||
{
|
||||
void OnSoundTestSceneLoaded();
|
||||
void OnSoundTestSceneInitialized(Reflex.Core.Container container); // Until its fixed
|
||||
}
|
||||
|
||||
public interface IOnPlatformerSceneLoadedHandler : IGlobalSubscriber
|
||||
{
|
||||
void OnPlatformerSceneLoaded();
|
||||
|
||||
@@ -1,20 +1,19 @@
|
||||
|
||||
#pragma warning disable CS0105
|
||||
using Code.Example.Platformer.Entity;
|
||||
using Code.Infrastructure.Input;
|
||||
using Code.Example.Race.Racer;
|
||||
using Code.Infrastructure.Audio;
|
||||
using Code.Infrastructure.SceneLoader;
|
||||
using Code.Infrastructure.Volume;
|
||||
using Code.Infrastructure.UI;
|
||||
using Code.Infrastructure.Audio;
|
||||
using Code.Infrastructure.Audio;
|
||||
using Code.Infrastructure.SceneLoader;
|
||||
using Code.Infrastructure.Camera;
|
||||
using Code.Infrastructure.Camera;
|
||||
using Code.Example.Platformer.Entity;
|
||||
using Code.Infrastructure.UI;
|
||||
using Code.Infrastructure.Input;
|
||||
using Code.Infrastructure.Configs;
|
||||
using Code.Infrastructure.UI;
|
||||
using Code.Infrastructure.Audio;
|
||||
using Code.Infrastructure.Audio;
|
||||
using Code.Example.Platformer.Entity;
|
||||
using Code.Infrastructure.Camera;
|
||||
using Code.Infrastructure.Audio;
|
||||
using Code.Infrastructure.Audio;
|
||||
using Code.Infrastructure.Camera;
|
||||
using Code.Infrastructure.UI;
|
||||
using Code.Example.Platformer.Entity;
|
||||
|
||||
using UnityEngine.AddressableAssets;
|
||||
#pragma warning restore CS0105
|
||||
@@ -22,21 +21,20 @@ using Code.Infrastructure.Audio;
|
||||
namespace Code.Infrastructure.Configs{
|
||||
public partial class SystemConfigsReferences
|
||||
{
|
||||
public AssetReference PlatformerPlayerSettings;
|
||||
public AssetReference InputService;
|
||||
public string RacerSettings;
|
||||
public AssetReference AudioSourcePrefab;
|
||||
public string SceneInfo;
|
||||
public string VolumeSettings;
|
||||
public string UIPanelSettings;
|
||||
public string AudioSourceSettings;
|
||||
public string AudioInfo;
|
||||
public string SceneInfo;
|
||||
public string CameraSettings;
|
||||
public AssetReference GameCamera;
|
||||
public string PlatformerEntitySettings;
|
||||
public AssetReference CanvasSettings;
|
||||
public AssetReference InputService;
|
||||
public string LayerMasksConfig;
|
||||
public string UIPanelSettings;
|
||||
public AssetReference AudioSourcePrefab;
|
||||
public string AudioSourceSettings;
|
||||
public AssetReference PlatformerPlayerSettings;
|
||||
public string CameraSettings;
|
||||
public string AudioInfo;
|
||||
public AssetReference AudioMixerConfig;
|
||||
public AssetReference GameCamera;
|
||||
public AssetReference CanvasSettings;
|
||||
public string PlatformerEntitySettings;
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user