Exemplo n.º 1
0
    void Next()
    {
        if (_tests.Count == 0)
        {
            PTest.Render();
            return;
        }

        var action = _tests [0];

        _tests.RemoveAt(0);
        action(Next);
    }
Exemplo n.º 2
0
    public void Start()
    {
        Playtomic.Initialize("testpublickey", "testprivatekey", testURL);

        PTest.Setup();

        PTestLeaderboards.rnd = PTestPlayerLevels.rnd = PTestAchievements.rnd = RND();

        _tests = new List <Action <Action> >
        {
#if TEST_GAMEVARS
            PTestGameVars.All,
            PTestGameVars.Single,
#endif
#if TEST_GEO
            PTestGeoIP.Lookup,
#endif
#if TEST_NEWSLETTER
            PTestNewsletter.Subscribe,
#endif
#if TEST_LEADERBOARDS
            PTestLeaderboards.FirstScore,
            PTestLeaderboards.SecondScore,
            PTestLeaderboards.HighScores,
            PTestLeaderboards.LowScores,
            PTestLeaderboards.AllScores,
            PTestLeaderboards.FriendsScores,
            PTestLeaderboards.OwnScores,
#endif
#if TEST_PLAYERLEVELS
            PTestPlayerLevels.Create,
            PTestPlayerLevels.List,
            PTestPlayerLevels.Load,
            PTestPlayerLevels.Rate,
#endif
#if TEST_ACHIEVEMENTS
            PTestAchievements.List,
            PTestAchievements.ListWithFriends,
            PTestAchievements.ListWithPlayer,
            PTestAchievements.ListWithPlayerAndFriends,
            PTestAchievements.Stream,
            PTestAchievements.StreamWithFriends,
            PTestAchievements.StreamWithPlayerAndFriends,
            PTestAchievements.Save
#endif
        };
        Next();
    }
Exemplo n.º 3
0
 public TestDllWithTrans(PTest ptest, int index, Transform trans)
     : base(ptest, index)
 {
     m_luaFuncName = "Test" + index;
     m_trans       = trans;
 }
Exemplo n.º 4
0
 public TestDll(PTest ptest, int index)
     : base(ptest, index)
 {
     m_luaFuncName = "Test" + index;
 }
Exemplo n.º 5
0
 public TestEmptyFunc(PTest ptest, int index)
     : base(ptest, index)
 {
 }
Exemplo n.º 6
0
 public TestGetValue(PTest ptest, int index, string valueName)
     : base(ptest, index)
 {
     m_valueName = valueName;
 }
Exemplo n.º 7
0
 public TestItem(PTest ptest, int index)
 {
     m_ptest = ptest;
     m_index = index;
 }
Exemplo n.º 8
0
 internal override void RemoveChild(Node child)
 {
     if ( _test_ == child )
     {
     _test_ = null;
     return;
     }
 }
Exemplo n.º 9
0
        public void SetTest(PTest node)
        {
            if(_test_ != null)
            {
            _test_.Parent(null);
            }

            if(node != null)
            {
            if(node.Parent() != null)
            {
                node.Parent().RemoveChild(node);
            }

            node.Parent(this);
            }

            _test_ = node;
        }
Exemplo n.º 10
0
     public AIExpression(
         PTest _test_
 )
     {
         SetTest (_test_);
     }
Exemplo n.º 11
0
     public ABIfexpr(
         PTest _test_
 )
     {
         SetTest (_test_);
     }