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