using System; using System.Collections.Generic; using UnityEngine; namespace Unity.Multiplayer.Center.Common { /// /// Stores what the user answered in the GameSpecs questionnaire. The Preset is not included here. /// [Serializable] public class AnswerData { /// /// The list of answers the user has given so far. /// public List Answers = new(); /// /// Makes a deep copy of the object. /// /// The clone public AnswerData Clone() { return JsonUtility.FromJson(JsonUtility.ToJson(this), typeof(AnswerData)) as AnswerData; } } /// /// Answer to a single game spec question. /// [Serializable] public class AnsweredQuestion { /// /// The question identifier as defined in the game spec questionnaire. /// public string QuestionId; /// /// The answers selected by the user (most often, it contains only one element). /// public List Answers; } }