protected override void RaiseTriggerAction(Gamer gamer) { if (PointsOperation == PointsOperation.Decrease) gamer.Points -= this.Points; else gamer.Points += this.Points; }
public void RegistrationAccept() { if (pass == passRepeat) { WaitingWindow w = new WaitingWindow(); w.Show(); //как сделать? this.IsEnabled = false; Gamer.ConnectToDatabase(); Gamer g = new Gamer(login, pass); if (g.login == (Gamer.FindByField("login", login)).login) { lblIsUsed.Visibility = System.Windows.Visibility.Visible; w.Close(); this.IsEnabled = true; } else { lblIsUsed.Visibility = System.Windows.Visibility.Hidden; g.Save(); Gamer.Disconnect(); w.Close(); this.IsEnabled = true; this.Close(); } } }
private void RaiceForSingleStatus(Gamer gamer) { gamer.GamerStatuses.Clear(); if (StatusAction == AssignUnassign.Assign) { gamer.GamerStatuses.Add(this.Status); } }
public void CallOnGamer(Gamer gamer) { RaiseTriggerAction(gamer); if (ChildTriggers.IsEmpty()) return; foreach (var childTrigger in ChildTriggers) { childTrigger.CallOnGamer(gamer); } }
protected override void RaiseTriggerAction(Gamer gamer) { if (gamer.Project.AcceptMultipleStatuses) { RaiseForMultipleStatuses(gamer); } else { RaiceForSingleStatus(gamer); } }
// Invoked when any sign in operation has completed private void DidLogin(Gamer newGamer) { if (Gamer != null) { Debug.LogWarning("Current gamer " + Gamer.GamerId + " has been dismissed"); Loop.Stop(); } Gamer = newGamer; Loop = Gamer.StartEventLoop(); Loop.ReceivedEvent += Loop_ReceivedEvent; Debug.Log("Signed in successfully (ID = " + Gamer.GamerId + ")"); }
protected override void RaiseTriggerAction(Gamer gamer) { if (ActionWithAchievement == AssignUnassign.Assign) { gamer.Achievements.Add(Achievement); } else { if (gamer.Achievements.Contains(Achievement)) gamer.Achievements.Remove(Achievement); } }
/// <summary>Logs the current user in anonymously.</summary> /// <returns>Task returning when the login has finished. The resulting Gamer object can then /// be used for many purposes related to the signed in account.</returns> public Promise<Gamer> LoginAnonymously() { Bundle config = Bundle.CreateObject(); config["device"] = Managers.SystemFunctions.CollectDeviceInformation(); HttpRequest req = MakeUnauthenticatedHttpRequest("/v1/login/anonymous"); req.BodyJson = config; return Common.RunInTask<Gamer>(req, (response, task) => { Gamer gamer = new Gamer(this, response.BodyJson); task.PostResult(gamer); Cotc.NotifyLoggedIn(this, gamer); }); }
private void RaiseForMultipleStatuses(Gamer gamer) { if (StatusAction == AssignUnassign.Assign) { if (!gamer.GamerStatuses.Contains(Status)) gamer.GamerStatuses.Add(Status); } else { if (gamer.GamerStatuses.Contains(Status)) gamer.GamerStatuses.Remove(Status); } }
private void Cotc_DidLogin(object sender, Cotc.LoggedInEventArgs e) { #if UNITY_IPHONE UnityEngine.iOS.NotificationServices.RegisterForNotifications( UnityEngine.iOS.NotificationType.Alert | UnityEngine.iOS.NotificationType.Badge | UnityEngine.iOS.NotificationType.Sound); #elif UNITY_ANDROID JavaClass.CallStatic("registerForNotifications"); #endif ShouldSendToken = true; RegisteredGamer = e.Gamer; }
public Game(Client[] clients) { gamers = new Gamer[2]; bool turn = true; for (int i = 0; i < gamers.Length; i++) { gamers[i] = new Gamer(); gamers[i].turn = turn; gamers[i].client = clients[i]; gamers[i].client.Step += Step; turn = !turn; } BigStaticClass.logger.Log(gamers[0].client.nick + " и " + gamers[1].client.nick + " вошли в игру"); Start(); }
Promise<PurchasedProduct> IStore.LaunchPurchaseFlow(Gamer gamer, ProductInfo product) { // Already in progress? Refuse immediately. lock (this) { if (LastLaunchProductPromise != null) { return Promise<PurchasedProduct>.Rejected(new CotcException(ErrorCode.AlreadyInProgress, "Launching purchase")); } LastLaunchProductPromise = new Promise<PurchasedProduct>(); } Bundle interop = product.AsBundle().Clone(); interop["userName"] = gamer.GamerId; // Will call back the CotcInappPurchaseGameObject CotcInappPurchase_launchPurchase(interop.ToJson()); return LastLaunchProductPromise; }
public void ShouldListUsers(Cloud cloud) { Gamer[] gamers = new Gamer[2]; // Create first user cloud.Login(LoginNetwork.Email, "*****@*****.**", "123") .ExpectSuccess(result1 => { gamers[0] = result1; // Second user return cloud.Login(LoginNetwork.Email, "*****@*****.**", "123"); }) .ExpectSuccess(result2 => { gamers[1] = result2; // Query for a specific user by e-mail return cloud.ListUsers("*****@*****.**"); }) .ExpectSuccess(result => { Assert(result.Count == 1, "Expected one result only"); Assert(result[0].UserId == gamers[1].GamerId, "Expected to return user 2"); Assert(result[0].Network == LoginNetwork.Email, "Network is e-mail"); Assert(result[0].NetworkId == "*****@*****.**", "Invalid network ID"); Assert(result[0]["profile"]["displayName"] == "user2", "Invalid profile display name"); // Query for all users in a paginated way return cloud.ListUsers("@", 1); }) .ExpectSuccess(result => { Assert(result.Count == 1, "Expected one result per page"); Assert(result.Total >= 2, "Expected at least two results total"); Assert(result.HasNext, "Should have next page"); Assert(!result.HasPrevious, "Should not have previous page"); // Next page return result.FetchNext(); }) .ExpectSuccess(nextPage => { Assert(nextPage.HasPrevious, "Should have previous page"); CompleteTest(); }); }
void Start() { i_current_player = 1; i_current_grid = 0; score_player_1 = score_player_2 = index_grid_rotation = step = 0; Gamer player1 = new Gamer(); player1.Score = 0; player1.Pseudo = "Player 1"; player1.PlayerNb = 1; player1.rotation_one = new Vector3(0,270,0); player1.rotation_two = new Vector3(0,180,90); player1.player_cube = GameObject.Find("Player 1 Cube"); Gamer player2 = new Gamer(); player2.Pseudo = "Player 2"; player2.Score = 0; player2.PlayerNb = 2; player2.rotation_one = new Vector3(0,90,180); player2.rotation_two = new Vector3(0,180,90); player2.player_cube = GameObject.Find("Player 2 Cube"); player_list = new List<Gamer>(); player_list.Add(player1); player_list.Add(player2); gui_at_left = true; }
public void Update(Gamer gamer, Game game, Campaign campaign) { Console.WriteLine("Oyun Güncellendi Oyun : " + game.GameName + " Kişi : " + gamer.FirstName + " " + gamer.LastName + " Kampanya : " + campaign.CampaignName); }
public void Delete(Gamer gamer) { Console.WriteLine("Oyuncu Silindi..." + gamer.FirstName); }
public override void PubgMobile(Gamer gamer) { base.PubgMobile(gamer); }
public void AcceptFriendRequest(Gamer fromGamer) { this.friendsSupport.AcceptFriendRequest(this.ConsoleProfile.OnlineXuid, fromGamer.OnlineXuid); }
public void RemoveFriend(Gamer friend) { this.friendsSupport.RemoveFriend(this.ConsoleProfile.OnlineXuid, friend.OnlineXuid); }
public void Update(Gamer gamer) { Console.WriteLine("Gamer is updated."); }
static void Main(string[] args) { Gamer gamer1 = new Gamer() { Id = 1, FirstName = "Mehmet Taha", LastName = "Kocal", DateOfBirth = new DateTime(2002, 03, 06), NationalityId = "13141256235" }; Gamer gamer2 = new Gamer() { Id = 2, FirstName = "Kemal", LastName = "Guler", DateOfBirth = new DateTime(2002, 06, 12), NationalityId = "1241256235" }; Gamer gamer3 = new Gamer() { Id = 3, FirstName = "Kerim Samet", LastName = "Ayas", DateOfBirth = new DateTime(2002, 06, 17), NationalityId = "12341256235" }; Gamer gamer4 = new Gamer() { Id = 4, FirstName = "Sinan", LastName = "Oztek", DateOfBirth = new DateTime(2002, 01, 12), NationalityId = "12341256235" }; GamerManager gamerManager = new GamerManager(new VerificationManager()); gamerManager.SignUp(gamer1); gamerManager.SignUp(gamer2); gamerManager.Update(gamer3); gamerManager.Delete(gamer4); Console.WriteLine("*******************************************************"); Game game1 = new Game() { Id = 1, GameName = "GTA V", GamePrice = 180 }; Game game2 = new Game() { Id = 2, GameName = "Rocket League", GamePrice = 32 }; Game game3 = new Game() { Id = 3, GameName = "Prepar 3D V5", GamePrice = 1600 }; GameManager gameManager = new GameManager(); gameManager.Add(game1); gameManager.Delete(game2); gameManager.Update(game3); Console.WriteLine("*******************************************************"); Campaign campaign1 = new Campaign() { Id = 1, CampaignName = "KIS INDIRIMI !!!!", Discount = 50 }; Campaign campaign2 = new Campaign() { Id = 2, CampaignName = "YAZ INDIRIMI !!!!", Discount = 35 }; Campaign campaign3 = new Campaign() { Id = 3, CampaignName = "SONBAHAR INDIRIMI !!!!", Discount = 70 }; SellManager sellManager = new SellManager(); sellManager.Sell(game1, gamer1, campaign1); sellManager.Sell(game2, gamer2, campaign2); sellManager.Sell(game3, gamer3, campaign3); Console.ReadLine(); }
public override void Metin2(Gamer gamer) { base.Metin2(gamer); }
public void Sales(Game game, Gamer gamer) { Console.WriteLine(gamer.GamerFirstName + " " + gamer.GamerLastName + " " + game.GameName + " Oyununu Aldı"); }
private void SetLastGamer(Gamer lastgamer) { Debug.Log("SETTING LAST GAMER WITH ID : " + lastgamer["gamer_id"] + " and secret : " + lastgamer["gamer_secret"]); PlayerPrefs.SetString(LAST_GAMERID_KEY, lastgamer["gamer_id"]); PlayerPrefs.SetString(LAST_GAMERSECRET_KEY, lastgamer["gamer_secret"]); }
private void DidLoginInjection(Gamer newGamer) { StartCoroutine(DidLogin(newGamer, 3f)); }
public bool CheckGamerOfRealGamer(Gamer gamer) { return true; }
public virtual void Delete(Gamer gamer) { Console.WriteLine("Deleted Gamer " + gamer.FirstName + " " + gamer.LastName); }
public virtual void Save(Gamer gamer) { Console.WriteLine("Saved Gamer " + gamer.FirstName + " " + gamer.LastName); }
public GamerInfo(Gamer gamer) { Data = Bundle.CreateObject (); GamerId = gamer.GamerId; GamerSecret = gamer.GamerSecret; }
public void CampaignSale(Game game, Gamer gamer, Campaign campaign) { Console.WriteLine(game.GameName + " Adlı Oyun " + gamer.FirstName + gamer.LastName + " Adlı Oyuncuya " + campaign.CampaignName + " Kampanyasıyla % " + campaign.CampaignDiscount + " indirimle satılmıştır. "); }
public void Delete(Gamer gamer) { Console.WriteLine("Gamer is deleted."); }
public void GameSale(Game game, Gamer gamer) { Console.WriteLine(game.GameName + "adlı oyun" + gamer.FirstName + gamer.LastName + "adlı oyuncuya satılmıştır"); }
public virtual void Delete(Gamer gamer) { Console.WriteLine(gamer.Name + " Deleted!"); }
public void delete(Gamer gamer) { Console.WriteLine(gamer.FirstName + " Oyuncusu Silindi."); }
public override IEnumerable<string> GetValuesToCompare(Gamer gamer) { return gamer.GamerStatuses.Select(x => x.StatusName).ToList(); }
public void update(Gamer gamer) { Console.WriteLine(gamer.FirstName + " Oyuncusu Güncellendi."); }
public void RejectFriendRequest(Gamer fromGamer, bool block) { this.friendsSupport.RejectFriendRequest(this.ConsoleProfile.OnlineXuid, fromGamer.OnlineXuid, block); }
public void Delete(Gamer gamer) { Console.WriteLine("User account has been deleted!"); }
public void SendFriendRequest(Gamer toGamer) { this.friendsSupport.SendFriendRequest(this.ConsoleProfile.OnlineXuid, toGamer.OnlineXuid); }
public override IEnumerable<string> GetValuesToCompare(Gamer gamer) { return gamer.Achievements.Select(x => x.Name); }
public void Update(Gamer gamer) { Console.WriteLine("Oyuncu Güncellendi..." + gamer.FirstName); }
public virtual void Add(Gamer gamer) { Console.WriteLine(gamer.Name + " Added!"); }
public void ShouldModifyGamerAfterConvertingAccount(Cloud cloud) { Gamer[] gamer = new Gamer[1]; // Create an anonymous account cloud.LoginAnonymously() // Then convert it to e-mail .Then(g => { gamer[0] = g; return g.Account.Convert( network: LoginNetwork.Email, networkId: RandomEmailAddress(), networkSecret: "Password123"); }) .Then(done => { Assert(gamer[0].Network == LoginNetwork.Email, "The gamer object failed to change"); CompleteTest(); }) .CompleteTestIfSuccessful(); }
public virtual void Update(Gamer gamer) { Console.WriteLine(gamer.Name + " Updated!"); }
internal GamerAccountMethods(Gamer parent) { Gamer = parent; }
// Invoked when any sign in operation has completed private void DidLogin(Gamer newGamer) { if (Gamer != null) { Debug.LogWarning("Current gamer " + Gamer.GamerId + " has been dismissed"); Loop.Stop(); } Gamer = newGamer; Loop = Gamer.StartEventLoop(); Loop.ReceivedEvent += Loop_ReceivedEvent; Debug.Log("Signed in successfully (ID = " + Gamer.GamerId + ")"); // Keep login in persistent memory to restore next time PlayerPrefs.SetString("GamerInfo", new GamerInfo(Gamer).ToJson()); // Notify others if (GamerChanged != null) GamerChanged(this, new EventArgs()); }
internal GamerBatches(Gamer parent) { Gamer = parent; }
public bool CheckIfRealGamer(Gamer gamer) { KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap); return(client.TCKimlikNoDogrulaAsync(new TCKimlikNoDogrulaRequest(new TCKimlikNoDogrulaRequestBody(TCKimlikNo: Convert.ToInt64(gamer.NationalityId), Ad: gamer.FirstName.ToUpper(), Soyad: gamer.LastName.ToUpper(), DogumYili: gamer.DateOfBirth.Year))).Result.Body.TCKimlikNoDogrulaResult); }
public void Update(Gamer gamer) { throw new NotImplementedException("User account has been updated!"); }
public void CampaignSales(Game game, Gamer gamer, Campaign campaign) { Console.WriteLine(gamer.GamerFirstName + " " + gamer.GamerLastName + " " + game.GameName + " oyununu " + campaign.CampaignName + " ile aldı."); }
public void Start() { #if UNITY_EDITOR logTeam = new LogFile[2]; for (int i = 0; i < 2; ++i) logTeam[i] = new LogFile(); logTeam[0].SetName("Assets/Scripts/Game/Autres/LOG/SouthTeam"); logTeam[1].SetName("Assets/Scripts/Game/Autres/LOG/NorthTeam"); #endif this.refs.xboxInputs.CheckNone(); this.northTeam.game = this; this.southTeam.game = this; this.northTeam.south = false; this.southTeam.south = true; this.northTeam.CreateUnits(); this.southTeam.CreateUnits(); this.Referee.game = this; this.Referee.StartPlacement(); this.northTeam.opponent = southTeam; this.southTeam.opponent = northTeam; // A changer de place this.northTeam.captain.unitAnimator.AddEvent("SuperEffect", () => { this.northTeam.Super.LaunchFeedback(); return false; }, UnitAnimator.SuperState, this.northTeam.captain.unitAnimator.TIME_SUPER_FX); // A changer de place this.southTeam.captain.unitAnimator.AddEvent("SuperEffect", () => { this.southTeam.Super.LaunchFeedback(); return false; }, UnitAnimator.SuperState, this.southTeam.captain.unitAnimator.TIME_SUPER_FX); this.refs.xboxInputs.Start(); this.p1 = new Gamer(refs.south); this.p2 = new Gamer(refs.north); this.Owner = p1.Controlled.Team; this.Ball.Game = this; this.Ball.transform.parent = p1.Controlled.BallPlaceHolderRight.transform; this.Ball.transform.localPosition = Vector3.zero; this.Ball.Owner = p1.Controlled; if (alwaysScrum) { ((GameObject.FindObjectOfType(typeof(ScrumField)) as ScrumField).collider as SphereCollider).radius = 100; settings.GameStates.MainState.PlayingState.GameActionState.ScrumingState.MaximumDuration = 200; } this.refs.managers.intro.OnFinish = () => { this.refs.managers.coin.callBack = (Team t) => { this.Ball.Owner = t.Player.Controlled; this._disableIA = true; this.Referee.OnStart(); this.refs.stateMachine.event_OnStartSignal(); }; this.refs.managers.coin.timeFlipping = 0; this.refs.managers.coin.enabled = true; }; this.refs.stateMachine.SetFirstState( new MainState(this.refs.stateMachine, this.refs.managers.camera, this) ); this.refs.managers.intro.enabled = true; xNE = refs.positions.limiteTerrainNordEst.transform.position.x; xSO = refs.positions.limiteTerrainSudOuest.transform.position.x; largeurTerrain = Mathf.Abs(xNE - xSO); section = largeurTerrain / 7f; AudioSource src; src = this.refs.CameraAudio["Ambiant"]; src.volume = 0.3f; src.loop = true; src.clip = this.refs.sounds.Ambiant; src.Play(); src = this.refs.CameraAudio["Ambiant2"]; src.volume = 0.3f; src.loop = true; src.clip = this.refs.sounds.Ambiant2; src.Play(); }
public void Delete(Gamer gamer) { Console.WriteLine(gamer.FirstName + " " + gamer.LastName + " deleted"); }
// See the public Login method for more info private Promise<Gamer> Login(string network, string networkId, string networkSecret, bool preventRegistration = false, Bundle additionalOptions = null) { Bundle config = Bundle.CreateObject(); config["network"] = network; config["id"] = networkId; config["secret"] = networkSecret; config["device"] = Managers.SystemFunctions.CollectDeviceInformation(); Bundle options = additionalOptions != null ? additionalOptions.Clone() : Bundle.CreateObject(); if (preventRegistration) options["preventRegistration"] = preventRegistration; if (!options.IsEmpty) config["options"] = options; HttpRequest req = MakeUnauthenticatedHttpRequest("/v1/login"); req.BodyJson = config; return Common.RunInTask<Gamer>(req, (response, task) => { Gamer gamer = new Gamer(this, response.BodyJson); task.PostResult(gamer); Cotc.NotifyLoggedIn(this, gamer); }); }
public void Update(Gamer gamer) { Console.WriteLine(gamer.FirstName + " " + gamer.LastName + " updated"); }
/// <summary> /// Returns if this sender is friends with the given sender. /// </summary> /// <param name="sender">The sender to check.</param> public bool IsFriend(Gamer gamer) { return SignedInGamer.IsFriend(gamer.NativeGamer); }
public void Sale(Game game, Gamer gamer) { Console.WriteLine(gamer.GamerName + " adlı oyuncunun " + game.GameName + " adlı oyunu satıldı."); }
internal GamerTransactions(Gamer gamer) { Gamer = gamer; }
public bool CheckIfRealPerson(Gamer gamer) { return(true); }
internal MatchInfo(Gamer gamer, string matchId) { Gamer = gamer; MatchId = matchId; }
public void Update(Gamer gamer) { throw new NotImplementedException(); }