2024-01-27 09:19:32 +00:00
|
|
|
using System.Collections.Generic;
|
2024-01-27 14:08:12 +00:00
|
|
|
using UnityEngine;
|
2024-01-27 09:19:32 +00:00
|
|
|
|
2024-01-27 11:24:47 +00:00
|
|
|
[System.Serializable]
|
2024-01-27 09:19:32 +00:00
|
|
|
public class Room
|
|
|
|
{
|
|
|
|
public string code;
|
|
|
|
public List<Question> questions;
|
|
|
|
public List<Player> players;
|
|
|
|
public int currentQuestion;
|
2024-01-27 14:08:12 +00:00
|
|
|
public double creationDate;
|
|
|
|
|
|
|
|
|
|
|
|
public Room(string _code)
|
|
|
|
{
|
|
|
|
this.code = _code;
|
|
|
|
this.creationDate = System.DateTime.Now.ToOADate();
|
|
|
|
this.players = new List<Player>();
|
|
|
|
this.questions = new List<Question>();
|
|
|
|
this.currentQuestion = 0;
|
|
|
|
}
|
2024-01-27 09:19:32 +00:00
|
|
|
}
|