Ejemplo n.º 1
0
 public AccountViewModel(Kbtter4Account ac)
 {
     SourceAccount = ac;
     ScreenName = SourceAccount.ScreenName;
     Id = SourceAccount.UserId;
     AccessToken = SourceAccount.AccessToken;
     AccessTokenSecret = SourceAccount.AccessTokenSecret;
 }
Ejemplo n.º 2
0
 public SceneGame(Kbtter4Account ac, UserInformation ui, OptionInformation[] opt)
 {
     optinfo = opt.Where(p => p != null).ToArray();
     info = ui;
     TwitterTokens = Tokens.Create(Kbtter.Setting.Consumer.Key, Kbtter.Setting.Consumer.Secret, ac.AccessToken, ac.AccessTokenSecret);
     Player = new PlayerUser(this, ui, PlayerMovingOperations.MouseOperaiton, PlayerShotOperations.Default, PlayerInputMethods.DefaultStyle);
     BackgroundImagePath = CommonObjects.GetUserFilePath("back_" + ui.SourceUser.Id.ToString() + ".png");
     Information = new InformationBox(info, Player)
     {
         X = 0,
         Y = 480
     };
     StringInfo = new StringSprite(CommonObjects.FontSystemMedium, CommonObjects.Colors.White)
     {
         X = 280,
         Y = 240,
         Value = "Loading"
     };
     options = new List<PlayerOption>();
     options.AddRange(optinfo.Select(p => new PlayerOption(Player, p, this)));
 }