Exemplo n.º 1
0
        public BaseGame(GameManager gameManager, string scoreUnits, ScoreCenter.SortDirection direction)
        {
            this.ScoreUnits    = scoreUnits;
            this.SortDirection = direction;
            this.GameManager   = gameManager;

            if (null == _unknownTexture)
            {
                _unknownTexture = this.GameManager.Game.Content.Load <Texture2D>(@"Textures\logo_unknown");
            }
            this.Logo      = _unknownTexture;
            this.Variation = string.Empty;
        }
Exemplo n.º 2
0
 public static void RegisterScore(string gameName, string gameVariation, float score, ScoreCenter.SortDirection direction, EventHandler <ScoreCenter.RegisterScoreCompletedEventArgs> completedEvent)
 {
     ScoreCenter.ScoreServiceSoapClient client = new ScoreCenter.ScoreServiceSoapClient();
     client.RegisterScoreAsync(FingerGames.Instance.GameManager.AnonymousId, Settings.Instance.GamerTag, gameName, gameVariation, 0, 0, score, direction, GenerateHash(FingerGames.Instance.GameManager.AnonymousId, Settings.Instance.GamerTag, gameName, gameVariation, score));
     client.RegisterScoreCompleted += delegate(object sender, ScoreCenter.RegisterScoreCompletedEventArgs e)
     {
         if (e.Error != null)
         {
             completedEvent(sender, null);
         }
         else
         {
             completedEvent(sender, e);
         }
     };
 }