Initial commit

This commit is contained in:
2026-03-03 00:39:30 +05:00
commit fc01f07d9b
29933 changed files with 5353098 additions and 0 deletions

View File

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