Ejemplo n.º 1
0
    private void RegListener()
    {
        tcb = new TestCallBack();

        IOSListener.OnSplashLoadFail += tcb.OnSplashLoadFail;
        IOSListener.OnSplashShow     += tcb.OnSplashShow;
        IOSListener.OnSplashClick    += tcb.OnSplashClick;
        IOSListener.OnSplashClose    += tcb.OnSplashClose;

        IOSListener.OnBannerLoaded      += tcb.OnBannerLoaded;
        IOSListener.OnBannerShow        += tcb.OnBannerShow;
        IOSListener.OnBannerClick       += tcb.OnBannerClick;
        IOSListener.OnBannerTapClose    += tcb.OnBannerTapClose;
        IOSListener.OnBannerAutoRefresh += tcb.OnBannerAutoRefresh;

        IOSListener.OnIntersitialLoadFail       += tcb.OnIntersitialLoadFail;
        IOSListener.OnIntersitialShow           += tcb.OnIntersitialShow;
        IOSListener.OnIntersitialClick          += tcb.OnIntersitialClick;
        IOSListener.OnIntersitialClose          += tcb.OnIntersitialClose;
        IOSListener.OnIntersitialPlayVideoFail  += tcb.OnIntersitialPlayVideoFail;
        IOSListener.OnIntersitialPlayVideoStart += tcb.OnIntersitialPlayVideoStart;
        IOSListener.OnIntersitialPlayVideoEnd   += tcb.OnIntersitialPlayVideoEnd;

        IOSListener.OnRewardVedioLoadFail       += tcb.OnRewardVedioLoadFail;
        IOSListener.OnRewardVedioClick          += tcb.OnRewardVedioClick;
        IOSListener.OnRewardVedioClose          += tcb.OnRewardVedioClose;
        IOSListener.OnRewardVedioPlayVideoFail  += tcb.OnRewardVedioPlayVideoFail;
        IOSListener.OnRewardVedioPlayVideoStart += tcb.OnRewardVedioPlayVideoStart;
        IOSListener.OnRewardVedioPlayVideoEnd   += tcb.OnRewardVedioPlayVideoEnd;
    }
Ejemplo n.º 2
0
        public void addCallBack(TestCallBack test)
        {
            test(10);

            EventDispatcher eventDispatcher = new EventDispatcher();
            eventDispatcher.AddListeners += onTestEvent;
        }
Ejemplo n.º 3
0
 iceD_CheckAlive(TestCallBack obj, global::IceInternal.Incoming inS, global::Ice.Current current)
 {
     global::Ice.ObjectImpl.iceCheckMode(global::Ice.OperationMode.Normal, current.mode);
     inS.readEmptyParams();
     obj.CheckAlive(current);
     return(inS.setResult(inS.writeEmptyParams()));
 }
Ejemplo n.º 4
0
        public void addCallBack(TestCallBack test)
        {
            test(10);

            EventDispatcher eventDispatcher = new EventDispatcher();
            eventDispatcher.AddListeners += onTestEvent;

            eventDispatcher.dispatchEventWith("helloEvent");
        }
Ejemplo n.º 5
0
        public void addCallBack(TestCallBack test)
        {
            test(10);

            //This is not good
            EventDispatcher<string> eventDispatcher = new EventDispatcher<string>();
            eventDispatcher.AddListeners += onTestEvent;

            eventDispatcher.dispatchEventWith("helloEvent");
        }
Ejemplo n.º 6
0
    public void StartSingleRollTest(Investigator i, TestCallBack callBack)
    {
        activeTestStat      = TestStat.None;
        activeTestType      = TestType.SingleRoll;
        testingInvestigator = i;
        currentCallBack     = callBack;
        currentNumRolls     = 1;
        currentResults      = new List <int>();

        App.View.testView.SingleRollTestStarted();
    }
Ejemplo n.º 7
0
        iceD_SendMessageToClient(TestCallBack obj, global::IceInternal.Incoming inS, global::Ice.Current current)
        {
            global::Ice.ObjectImpl.iceCheckMode(global::Ice.OperationMode.Normal, current.mode);
            var    istr = inS.startReadParams();
            string iceP_msg;

            iceP_msg = istr.readString();
            inS.endReadParams();
            obj.SendMessageToClient(iceP_msg, current);
            return(inS.setResult(inS.writeEmptyParams()));
        }
Ejemplo n.º 8
0
    public void StartTest(TestStat stat, int testMod, TestType testType, Investigator i, TestCallBack callBack)
    {
        activeTestStat       = stat;
        activeTestMod        = testMod;
        activeTestType       = testType;
        testingInvestigator  = i;
        currentCallBack      = callBack;
        currentAdditionalDie = 0;
        currentBonus         = 0;
        currentResults       = new List <int>();

        App.View.testView.PreTest();
    }
Ejemplo n.º 9
0
 public void addCallBack(TestCallBack test)
 {
     test(10);
Ejemplo n.º 10
0
    public Investigator testingInvestigator; // Used to cache Investigator reference incase the Investigator dies during the test

    void Start()
    {
        currentCallBack = null;
        currentResults  = new List <int>();
        reRolledDice    = new List <int>();
    }
Ejemplo n.º 11
0
        public void addCallBack(TestCallBack test)
        {
            test(10);

            EventDispatcher eventDispatcher = new EventDispatcher();
        }
Ejemplo n.º 12
0
        public void addCallBack(TestCallBack test)
        {

        }
Ejemplo n.º 13
0
 public void StartTest(TestStat stat, int testMod, TestType testType, Investigator i, TestCallBack callBack)
 {
     App.Model.testModel.StartTest(stat, testMod, testType, i, callBack);
     App.Controller.queueController.CreateCallBackQueue(FinishPreTestEvent); // Create Queue
     App.Model.eventModel.PreTestEvent();                                    // Populate Queue
     App.Controller.queueController.StartCallBackQueue();                    // Start Queue
 }
Ejemplo n.º 14
0
 public void StartSingleDieTest(Investigator i, TestCallBack callBack)
 {
     App.Model.testModel.StartSingleRollTest(i, callBack);
 }