Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

Commit

Permalink
Refactor GSM
Browse files Browse the repository at this point in the history
  • Loading branch information
ShutovKS committed May 23, 2023
1 parent d1afa35 commit 9da70d4
Show file tree
Hide file tree
Showing 30 changed files with 99 additions and 352 deletions.
179 changes: 0 additions & 179 deletions Assets/AddressableAssetsData/link.xml

This file was deleted.

7 changes: 0 additions & 7 deletions Assets/AddressableAssetsData/link.xml.meta

This file was deleted.

18 changes: 18 additions & 0 deletions Assets/Internal assets/Scripts/Data/Dynamic/Player/SkillEntry.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System;
using Skill;

namespace Data.Dynamic.Player
{
[Serializable]
public class SkillEntry
{
public SkillType Key;
public int Value;

public SkillEntry(SkillType key, int value)
{
Key = key;
Value = value;
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 0 additions & 13 deletions Assets/Internal assets/Scripts/Data/Dynamic/Player/SkillsLevel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,4 @@ public void DeserializeSkills()
Skills[skillsType] = level;
}
}

[Serializable]
public class SkillEntry
{
public SkillType Key;
public int Value;

public SkillEntry(SkillType key, int value)
{
Key = key;
Value = value;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public GameInstance(
StateMachine = new StateMachine<GameInstance>(
this,
new BootstrapState(this),
new LoadLateLocation(this, saveLoadService),
new LoadLastSavedLocation(this, saveLoadService),
new SceneLoadingState(this, uiFactory),
new RemoveProgressData(this, saveLoadService),
new ProgressLoadingState(this, saveLoadService, saveLoadInstancesWatcher, persistentProgressService),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,7 @@ public BaseState(TContext context)
{
Context = context;
}

public virtual void Tick()
{
}

public virtual void Exit()
{
}
public virtual void Tick() { }
public virtual void Exit() { }
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
using System.Threading.Tasks;

namespace Infrastructure.GlobalStateMachine.StateMachine
namespace Infrastructure.GlobalStateMachine.StateMachine
{
public class State<TContext> : BaseState<TContext>
{
public State(TContext context) : base(context) { }

public virtual void Enter() {}
public virtual void Enter() { }
}
}
Loading

0 comments on commit 9da70d4

Please sign in to comment.