public Vote(VoteDescriptor description, int length) { Votes = new Dictionary <int, int>(); AlreadyVoted = new List <Client>(); Type = description; _timerLen = length; }
public void SendVoteToAll(VoteDescriptor description) { List <object> objParam = new List <object>(); objParam.Add(description.name); objParam.Add(description.Options.Length); objParam.AddRange(description.Options); cr.c.triggerClientEventForAll("start_vote", objParam.ToArray()); }