protected override void OnCreate(Bundle bundle) { SetContentView(Resource.Layout.JoinGame); base.OnCreate(bundle); CsClient = CityAndSeekApp.CsClient; // Find things GameIdEditText = FindViewById <EditText>(Resource.Id.gameIdEditText); GamePasswordEditText = FindViewById <EditText>(Resource.Id.passwordEditText); UsernameEditText = FindViewById <EditText>(Resource.Id.usernameEditText); GameIdLabel = FindViewById <TextView>(Resource.Id.gameIdLabel); GamePasswordLabel = FindViewById <TextView>(Resource.Id.gamePasswordLabel); JoinGameButton = FindViewById <Button>(Resource.Id.joinGameButton); // Check if data was supplied if (Intent.HasExtra("GameId")) { GameIdEditText.Text = Intent.GetIntExtra("GameId", 0).ToString(); GameIdLabel.Visibility = ViewStates.Gone; GameIdEditText.Visibility = ViewStates.Gone; } if (Intent.HasExtra("GamePassword")) { GamePasswordEditText.Text = Intent.GetStringExtra("GamePassword"); GamePasswordLabel.Visibility = ViewStates.Gone; GamePasswordEditText.Visibility = ViewStates.Gone; } }
protected override void OnCreate(Bundle savedInstanceState) { SetContentView(Resource.Layout.CreateGame); base.OnCreate(savedInstanceState); CsClient = CityAndSeekApp.CsClient; // Find things GameNameEditText = FindViewById <EditText>(Resource.Id.gameNameEditText); GamePasswordEditText = FindViewById <EditText>(Resource.Id.passwordEditText); }
public GameStateUpdateHandler(CityAndSeekClient client) : base(client) { }
public RequestHandler(CityAndSeekClient client) { Client = client; }
public ServerPositionUpdateHandler(CityAndSeekClient client) : base(client) { }