Files
Nitrox/NitroxModel/DataStructures/GameLogic/InitialStoryGoalData.cs
2025-07-06 00:23:46 +02:00

35 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using BinaryPack.Attributes;
namespace NitroxModel.DataStructures.GameLogic
{
[Serializable]
public class InitialStoryGoalData
{
public List<string> CompletedGoals { get; set; }
public List<string> RadioQueue { get; set; }
public List<NitroxScheduledGoal> ScheduledGoals { get; set; }
/// <remarks>
/// This is the only field in this class that is very personal to the player this will be sent to.
/// The other ones are shared by everyone and are related to overall story progress.
/// </remarks>
public Dictionary<string, float> PersonalCompletedGoalsWithTimestamp { get; set; }
[IgnoreConstructor]
protected InitialStoryGoalData()
{
// Constructor for serialization. Has to be "protected" for json serialization.
}
public InitialStoryGoalData(List<string> completedGoals, List<string> radioQueue, List<NitroxScheduledGoal> scheduledGoals, Dictionary<string, float> personalCompletedGoalsWithTimestamp)
{
CompletedGoals = completedGoals;
RadioQueue = radioQueue;
ScheduledGoals = scheduledGoals;
PersonalCompletedGoalsWithTimestamp = personalCompletedGoalsWithTimestamp;
}
}
}