@@ -9,27 +9,37 @@ namespace RedCatEngine.Quests.Tests.SpecialSubClasses
99 [ Serializable ]
1010 public class TestQuestData : IQuestData
1111 {
12- public ConfigID < QuestConfig > Config => ConfigID < QuestConfig > . Invalid ;
13- public DateTime CreateTime { get ; }
14- public QuestState QuestState { get ; }
12+ private ConfigID < QuestConfig > _config = ConfigID < QuestConfig > . Invalid ;
13+ private DateTime _createTime = DateTime . UtcNow ;
14+ private QuestState _questState = QuestState . InProgress ;
15+
16+ public ConfigID < QuestConfig > Config
17+ => _config ;
18+
19+ public DateTime CreateTime
20+ => _createTime ;
21+
22+ public QuestState QuestState
23+ => _questState ;
24+
1525 public ConfigID < QuestConfig > GetConfig ( )
1626 {
1727 return Config ;
1828 }
1929
2030 public DateTime GetCreateTime ( )
2131 {
22- throw new NotImplementedException ( ) ;
32+ return CreateTime ;
2333 }
2434
2535 public QuestState GetQuestState ( )
2636 {
27- throw new NotImplementedException ( ) ;
37+ return QuestState ;
2838 }
2939
3040 public void SetQuestState ( QuestState newQuestState )
3141 {
32- throw new NotImplementedException ( ) ;
42+ _questState = newQuestState ;
3343 }
3444
3545 public void ConstructSerialization (
@@ -38,7 +48,9 @@ public void ConstructSerialization(
3848 QuestState questState
3949 )
4050 {
41- throw new NotImplementedException ( ) ;
51+ _config = config ;
52+ _createTime = createTime ;
53+ _questState = questState ;
4254 }
4355 }
44- }
56+ }
0 commit comments