コード例 #1
0
        public Game(HostileSpaceServer Server, Client Client)
        {
            server = Server;
            client = Client;
            client.PacketReceieved += Client_PacketReceieved;

            playerShip = new SpaceShip();
        }
コード例 #2
0
        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);
                }
            }
        }
コード例 #3
0
 public LoginHandler(HostileSpaceServer Server)
     : base(Server)
 {
 }
コード例 #4
0
 public GameClient(HostileSpaceServer Server, Client Client)
     : base(Server)
 {
     client = Client;
     client.PacketReceieved += Client_PacketReceieved;
 }
コード例 #5
0
 public ServerComponent(HostileSpaceServer Server)
 {
     server = Server;
 }