Snaparazzi/Assets/Scripts/DatabaseClasses/Room.cs

23 lines
467 B
C#
Raw Normal View History

2024-01-27 18:58:02 +00:00
using System;
2024-01-27 09:19:32 +00:00
using System.Collections.Generic;
2024-01-27 18:58:02 +00:00
[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)
{
2024-01-27 18:58:02 +00:00
code = _code;
creationDate = DateTime.Now.ToOADate();
players = new List<Player>();
questions = new List<Question>();
currentQuestion = 0;
2024-01-27 14:08:12 +00:00
}
2024-01-27 09:19:32 +00:00
}