public Game(HostileSpaceServer Server, Client Client) { server = Server; client = Client; client.PacketReceieved += Client_PacketReceieved; playerShip = new SpaceShip(); }
static void Main(string[] args) { HostileSpaceServer server = new HostileSpaceServer(); Clock clock = new Clock(); Time elapsed = Time.Zero; while (true) { server.Update(elapsed); elapsed = clock.Restart(); while (clock.ElapsedTime.AsMilliseconds() < 20) { System.Threading.Thread.Sleep(1); } } }
public LoginHandler(HostileSpaceServer Server) : base(Server) { }
public GameClient(HostileSpaceServer Server, Client Client) : base(Server) { client = Client; client.PacketReceieved += Client_PacketReceieved; }
public ServerComponent(HostileSpaceServer Server) { server = Server; }