Exemplo n.º 1
0
        /*public PlatformManager([InjectOptional] List<ISocialPlatform> platforms)
         * {
         *  if (platforms is null) _platforms = new List<ISocialPlatform>();
         *  else _platforms = platforms;
         * }*/

        public PlatformManager(Config config, SiraLog siraLog, ISocialPlatform platform)
        {
            _config    = config;
            _platforms = new List <ISocialPlatform> {
                platform
            };
        }
Exemplo n.º 2
0
 public MenuButtonManager(ISocialPlatform socialPlatform, ActionFlowCoordinator actionFlowCoordinator, MainFlowCoordinator mainFlowCoordinator)
 {
     _socialPlatform        = socialPlatform;
     _mainFlowCoordinator   = mainFlowCoordinator;
     _actionFlowCoordinator = actionFlowCoordinator;
     _menuButton            = new MenuButton(nameof(Actions), ShowFlow);
 }
Exemplo n.º 3
0
 public TwitchActionUser(ISocialPlatform socialPlatform, User user)
 {
     ID   = user.ID;
     Name = user.DisplayName;
     ProfilePictureURL = user.ProfileImageURL;
     _socialPlatform   = socialPlatform;
 }
        public static IObservable <bool> ContinueAfterAuthenticate(this ISocialPlatform socialPlatform,
                                                                   IObservable <bool> command)
        {
            var authCommand = new AuthenticateCommand(socialPlatform);

            return(authCommand
                   .Execute(Unit.Default)
                   .Where(x => x.Result)
                   .ContinueWith(command));
        }
 protected virtual void Awake()
 {
     // Ensure we have one only instance
     if (_instance != null)
     {
         Destroy(this);
     }
     else
     {
         if (dontDestroyOnLoad)
         {
             DontDestroyOnLoad(gameObject);
         }
         _instance              = this;
         downloading            = false;
         cancelling             = false;
         _defaultSocialPlatform = Social.Active;
         _platform              = new CombuPlatform();
         if (setAsDefaultSocialPlatform)
         {
             Social.Active = _platform;
         }
     }
 }
 public LoadScoresCommand(ISocialPlatform socialPlatform)
 {
     _socialPlatform = socialPlatform;
 }
 protected SocialService(ISocialPlatform socialPlatform)
 {
     _socialPlatform = socialPlatform;
 }
 public ReportProgressCommand(ISocialPlatform socialPlatform)
 {
     _socialPlatform = socialPlatform;
 }
 public LoadAchievementDescriptionsCommand(ISocialPlatform socialPlatform)
 {
     _socialPlatform = socialPlatform;
 }
 public LoadAchievementsCommand(ISocialPlatform socialPlatform)
 {
     _socialPlatform = socialPlatform;
 }
 public AuthenticateCommand(ISocialPlatform socialPlatform)
 {
     _socialPlatform = socialPlatform;
 }
Exemplo n.º 12
0
 public CommandCreator(Config config, ActionMacroView macroView, ISocialPlatform socialPlatform)
 {
     _config         = config;
     _macroView      = macroView;
     _socialPlatform = socialPlatform;
 }
 public PostScoreCommand(ISocialPlatform socialPlatform)
 {
     _socialPlatform = socialPlatform;
 }
Exemplo n.º 14
0
 public LoadUsersCommand(ISocialPlatform socialPlatform)
 {
     _socialPlatform = socialPlatform;
 }