예제 #1
0
        public static void Initialize(SocialMode?mode = null)
        {
            if (!mode.HasValue)
            {
                mode = new SocialMode?(SocialMode.None);
            }
            SocialAPI.Mode     = mode.Value;
            SocialAPI._modules = new List <ISocialModule>();
            SocialMode mode2 = SocialAPI.Mode;

            if (mode2 == SocialMode.Steam)
            {
                SocialAPI.LoadSteam();
            }
            foreach (ISocialModule current in SocialAPI._modules)
            {
                current.Initialize();
            }
        }
예제 #2
0
        public static void Initialize(SocialMode?mode = null)
        {
            if (!mode.HasValue)
            {
                mode = new SocialMode?(SocialMode.None);
                mode = new SocialMode?(SocialMode.Steam);
            }

            SocialAPI._mode    = mode.Value;
            SocialAPI._modules = new List <ISocialModule>();
            if (SocialAPI.Mode == SocialMode.Steam)
            {
                SocialAPI.LoadSteam();
            }
            foreach (var module in SocialAPI._modules)
            {
                module.Initialize();
            }
        }
예제 #3
0
 public static void Initialize(SocialMode?mode = null)
 {
     if (!mode.HasValue)
     {
         mode = new SocialMode?(SocialMode.None);
         if (Program.LaunchParameters.ContainsKey("-steam"))
         {
             mode = new SocialMode?(SocialMode.Steam);
         }
     }
     SocialAPI._mode    = mode.Value;
     SocialAPI._modules = new List <ISocialModule>();
     if (SocialAPI.Mode == SocialMode.Steam)
     {
         SocialAPI.LoadSteam();
     }
     foreach (ISocialModule module in SocialAPI._modules)
     {
         module.Initialize();
     }
 }