Exemple #1
0
 public LoginScene(
     ZoneClientNetPeer zoneClientNetPeer,
     WindowService windowService)
     : base(windowService)
 {
     this.zoneClientNetPeer = zoneClientNetPeer;
     this.windowService     = windowService;
 }
Exemple #2
0
 public GameCore(
     ZoneClientNetPeer zoneClientNetPeer,
     IncomingMessageProcessor incomingMessageProcessor,
     IServiceProvider serviceProvider)
     : base(windowTitle: "Sinalia")
 {
     this.zoneClientNetPeer        = zoneClientNetPeer;
     this.incomingMessageProcessor = incomingMessageProcessor;
     this.serviceProvider          = serviceProvider;
 }
Exemple #3
0
 public ZoneClient(
     IServiceProvider serviceProvider,
     IncomingMessageProcessor incomingMessageProcessor,
     ILoggingService loggingService,
     ZoneClientNetPeer zoneClientNetPeer)
 {
     this.serviceProvider          = serviceProvider;
     this.incomingMessageProcessor = incomingMessageProcessor;
     this.loggingService           = loggingService;
     this.zoneClientNetPeer        = zoneClientNetPeer;
 }
Exemple #4
0
        public LoginWindow(
            WindowService windowService,
            ZoneClientNetPeer zoneClientNetPeer)
        {
            this.windowService     = windowService;
            this.zoneClientNetPeer = zoneClientNetPeer;

            SetWidth(200);
            SetMovable(false);

            var skin = GameSettings.Skin;

            var table = new Table();

            table.Center();

            var emailLbl = new Label("Email adress");

            emailLbl.SetFontColor(Color.Black);
            emailTf = new TextField("Cypgain", skin.Get <TextFieldStyle>("Textbox"));

            var passwordLbl = new Label("Password");

            passwordLbl.SetFontColor(Color.Black);
            passwordTf = new TextField("test", skin.Get <TextFieldStyle>("Textbox"));
            passwordTf.SetPasswordMode(true);

            var loginBtn = new TextButton("Login", skin.Get <TextButtonStyle>("Button"));

            loginBtn.OnClicked += LoginButton_OnClicked;

            table.Add(emailLbl);
            table.Row();
            table.Add(emailTf).SetPadBottom(10);
            table.Row();
            table.Add(passwordLbl);
            table.Row();
            table.Add(passwordTf).SetPadBottom(10);
            table.Row();
            table.Add(loginBtn).SetFillX().SetExpandX();

            Add(table);
        }
 public PlayerLoginSuccessMessageHandler(ZoneClientNetPeer zoneClientNetPeer)
 {
     this.zoneClientNetPeer = zoneClientNetPeer;
 }