Ejemplo n.º 1
0
 public Vote(VoteDescriptor description, int length)
 {
     Votes        = new Dictionary <int, int>();
     AlreadyVoted = new List <Client>();
     Type         = description;
     _timerLen    = length;
 }
Ejemplo n.º 2
0
        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());
        }