示例#1
0
 private void SendServerInformation(CincoUser user)
 {
     user.Connection.Send (new ServerInformationMessage(tickDelay));
 }
示例#2
0
 public PingContainer(CincoUser user)
 {
     this.User = user;
 }
示例#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);
        }