Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Riddlersoft.Core.Switch.NSwitch.Init();
            //   Console.Clear();
            Leaderboards.Initalize(0x28BA8400, "ca527321");

            if (Riddlersoft.Core.Switch.NSwitch.IsNSAAccount())
            {
                Console.WriteLine("Yey you can play");
            }
            else
            {
                Console.WriteLine("Bhoo go away!");
            }

            //  Leaderboards.Load();

            CategoryHelper.AddCategory("test", 0, SortOrder.Accending);

            Leaderboards.UploadScore(NSwitch.GetNickName(), 15000, "test", 0);
            //return;
            List <HighScore> scores = Leaderboards.GetScores("test", SortOrder.Accending, LeaderboardFilter.RANGE_RANKING, 0, 100);

            Console.WriteLine("===============HIGHSCORE=============");
            Console.WriteLine("Leaderboard One");
            for (int i = 0; i < scores.Count; i++)
            {
                Console.WriteLine($"{i}: {scores[i].CommonDataUserName}: {scores[i].Score}");
            }

            return;
        }
Ejemplo n.º 2
0
    // Needs implementation
    private static NSwitch CurrentNSwitch()
    {
        NSwitch nSwitch = new NSwitch();

        nSwitch.controllers = new NSwitch.Controller[0];
        return(nSwitch);
    }
Ejemplo n.º 3
0
        public static void Commit()
        {
#if SWITCH
            NSwitch.CommitSaveData();
#endif
            if (AutoUnmountAfterCommit)
            {
                UnMountStorage();
            }
        }
Ejemplo n.º 4
0
        public static void MountStorage()
        {
#if SWITCH
            if (!_HaveInitializedStorage)
            {
                NSwitch.Init();
                _HaveInitializedStorage = true;
            }

            NSwitch.MountRom();
#endif
        }
Ejemplo n.º 5
0
 public Block19260100()
 {
     f2Shina0 = new F2shina0();
     f2Shina1 = new F2shina1();
     f2Shina2 = new F2shina2();
     f2Shina3 = new F2shina3();
     f2Shina4 = new F2shina4();
     switch1  = new NSwitch(5);
     alert1   = new NAlert(11);
     alert2   = new NAlert(12);
     alert3   = new NAlert(13);
     alert4   = new NAlert(14);
 }
Ejemplo n.º 6
0
        public BlockF8()
        {
            Shina     = new shina();
            TumblerB2 = new tumblerB2();
            TumblerB4 = new tumblerB4();

            ButtonU17 = new NButton(0);
            Switcher2 = new NSwitch(4);
            Switcher1 = new NSwitch(4);
            Nalerts   = new NAlert(10);
            Nalerts1  = new NAlert(4);
            Nalerts2  = new NAlert(5);
            Nalerts3  = new NAlert(6);
            Nalerts4  = new NAlert(7);
            Nalerts5  = new NAlert(8);
            Nalerts6  = new NAlert(9);
        }
Ejemplo n.º 7
0
 public Block190350()
 {
     f1shina     = new F1Shina();
     f1Tumbler0  = new F1tumbler0();
     f1Tumbler10 = new F1tumbler1();
     f1Tumbler11 = new F1tumbler6();
     f1Tumbler20 = new F1tumbler2();
     f1Tumbler21 = new F1tumbler7();
     f1Tumbler3  = new F1tumbler3();
     f1Tumbler4  = new F1tumbler4();
     f1Tumbler5  = new F1tumbler5();
     Switch1     = new NSwitch(3);
     Switch2     = new NSwitch(2);
     Switch3     = new NSwitch(1);
     Alert1      = new NAlert(1);
     Alert2      = new NAlert(2);
     Alert3      = new NAlert(3);
     Alert4      = new NAlert(4);
 }
Ejemplo n.º 8
0
        public static void UnMountStorage()
        {
#if SWITCH
            NSwitch.UnmountRom();
#endif
        }