Skip to content

Commit

Permalink
refactor: moved an event to the top of the class
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmtckr27 committed Jan 6, 2025
1 parent 25d15f1 commit fc3e967
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/Scripts/Systems/QuestSystem/Domain/Quest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ namespace RPG.Systems.QuestSystem
[CreateAssetMenu(menuName = "RPG/Scriptable Objects/Quest System/Quest", fileName = "SO_Quest_")]
public class Quest : ScriptableObject
{
public event Action OnProgressed;

[field: SerializeField] public string ID { get; private set; }
[field: SerializeField] public string DisplayName { get; private set; }
[field: SerializeField] public string Description { get; private set; }
Expand All @@ -16,8 +18,6 @@ public class Quest : ScriptableObject

private int _currentStepIndex;

public event Action OnProgressed;

public Step CurrentStep => Steps[_currentStepIndex];

private void OnEnable() => _currentStepIndex = 0;
Expand Down

0 comments on commit fc3e967

Please sign in to comment.