예제 #1
0
 public Vote(VoteDescriptor description, int length)
 {
     Votes        = new Dictionary <int, int>();
     AlreadyVoted = new List <Client>();
     Type         = description;
     _timerLen    = length;
 }
예제 #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());
        }