Exemple #1
0
 private void SendServerInformation(CincoUser user)
 {
     user.Connection.Send (new ServerInformationMessage(tickDelay));
 }
Exemple #2
0
 public PingContainer(CincoUser user)
 {
     this.User = user;
 }
Exemple #3
0
        protected override void OnConnectionMade(object sender, ConnectionMadeEventArgs e)
        {
            var cincoUser = new CincoUser
            {
                Connection = e.Connection,
                IsActive = true,
                TickRate = options.TickRate,
                UpdateRate = options.UpdateRate
            };

            lock (userLock)
                this.users.Add (e.Connection, cincoUser);

            SendServerInformation (cincoUser);
            base.OnConnectionMade (sender, e);
        }