@@ -27,7 +27,7 @@ public class Mission
27
27
public TimeSpan TimeExpireCurrentState { get ; set ; }
28
28
public PrototypeId PrototypeId { get ; set ; }
29
29
public int Random { get ; set ; }
30
- public Objective [ ] Objectives { get ; set ; }
30
+ public MissionObjective [ ] Objectives { get ; set ; }
31
31
public ulong [ ] Participants { get ; set ; }
32
32
public bool Suspended { get ; set ; }
33
33
@@ -41,7 +41,7 @@ public Mission(CodedInputStream stream, BoolDecoder boolDecoder)
41
41
PrototypeId = stream . ReadPrototypeRef < Prototype > ( ) ;
42
42
Random = stream . ReadRawInt32 ( ) ;
43
43
44
- Objectives = new Objective [ stream . ReadRawVarint64 ( ) ] ;
44
+ Objectives = new MissionObjective [ stream . ReadRawVarint64 ( ) ] ;
45
45
for ( int i = 0 ; i < Objectives . Length ; i ++ )
46
46
Objectives [ i ] = new ( stream ) ;
47
47
@@ -53,7 +53,7 @@ public Mission(CodedInputStream stream, BoolDecoder boolDecoder)
53
53
}
54
54
55
55
public Mission ( MissionState state , TimeSpan timeExpireCurrentState , PrototypeId prototypeId ,
56
- int random , Objective [ ] objectives , ulong [ ] participants , bool suspended )
56
+ int random , MissionObjective [ ] objectives , ulong [ ] participants , bool suspended )
57
57
{
58
58
State = state ;
59
59
TimeExpireCurrentState = timeExpireCurrentState ;
@@ -70,7 +70,7 @@ public Mission(PrototypeId prototypeId, int random)
70
70
TimeExpireCurrentState = TimeSpan . Zero ;
71
71
PrototypeId = prototypeId ;
72
72
Random = random ;
73
- Objectives = new Objective [ ] { new ( 0x0 , MissionObjectiveState . Active , TimeSpan . Zero , Array . Empty < InteractionTag > ( ) , 0x0 , 0x0 , 0x0 , 0x0 ) } ;
73
+ Objectives = new MissionObjective [ ] { new ( 0x0 , MissionObjectiveState . Active , TimeSpan . Zero , Array . Empty < InteractionTag > ( ) , 0x0 , 0x0 , 0x0 , 0x0 ) } ;
74
74
Participants = Array . Empty < ulong > ( ) ;
75
75
Suspended = false ;
76
76
}
@@ -92,7 +92,7 @@ public void Encode(CodedOutputStream stream, BoolEncoder boolEncoder)
92
92
stream . WriteRawInt32 ( Random ) ;
93
93
94
94
stream . WriteRawVarint64 ( ( ulong ) Objectives . Length ) ;
95
- foreach ( Objective objective in Objectives ) objective . Encode ( stream ) ;
95
+ foreach ( MissionObjective objective in Objectives ) objective . Encode ( stream ) ;
96
96
97
97
stream . WriteRawVarint64 ( ( ulong ) Participants . Length ) ;
98
98
foreach ( ulong Participant in Participants ) stream . WriteRawVarint64 ( Participant ) ;
0 commit comments