Exemple #1
0
    public override void Dispose()
    {
        if (Debug.isDebugBuild)
        {
            DataLookupDebug.Dispose();
        }

        m_endPoint = null;
    }
Exemple #2
0
        static StackObject *Dispose_6(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            EB.Sparx.EndPoint instance_of_this_method = (EB.Sparx.EndPoint) typeof(EB.Sparx.EndPoint).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Dispose();

            return(__ret);
        }
Exemple #3
0
        static StackObject *get_Url_3(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            EB.Sparx.EndPoint instance_of_this_method = (EB.Sparx.EndPoint) typeof(EB.Sparx.EndPoint).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.Url;

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Exemple #4
0
    public override void Initialize(EB.Sparx.Config config)
    {
        m_endPoint = Hub.ApiEndPoint;
        if (Debug.isDebugBuild)
        {
            DataLookupDebug.Create();
        }

        // PushManager should Initialize before DataLookupSparxManager
        EB.Sparx.PushManager pm = Hub.PushManager;
        if (pm != null)
        {
            pm.OnHandleMessage += new System.Action <string, string, object>(OnHandleMessage);
        }
    }
Exemple #5
0
        static StackObject *AddData_4(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.String @value = (System.String) typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.String @key = (System.String) typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            EB.Sparx.EndPoint instance_of_this_method = (EB.Sparx.EndPoint) typeof(EB.Sparx.EndPoint).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.AddData(@key, @value);

            return(__ret);
        }
Exemple #6
0
        static StackObject *Service_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Action <EB.Sparx.Response> @callback = (System.Action <EB.Sparx.Response>) typeof(System.Action <EB.Sparx.Response>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            EB.Sparx.Request @request = (EB.Sparx.Request) typeof(EB.Sparx.Request).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            EB.Sparx.EndPoint instance_of_this_method = (EB.Sparx.EndPoint) typeof(EB.Sparx.EndPoint).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.Service(@request, @callback);

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value      = result_of_this_method;
            return(__ret + 1);
        }
Exemple #7
0
 public SparxAPI(EB.Sparx.EndPoint _endPoint)
 {
     UnityEngine.Debug.Assert(_endPoint != null, "sparxAPI endPoint is null");
     endPoint = _endPoint;
 }
Exemple #8
0
 public AsyncManager(EB.Sparx.EndPoint api)
 {
     m_Api = api;
 }
Exemple #9
0
 public LTDrawCardAPI(EB.Sparx.EndPoint endPoint) : base(endPoint)
 {
 }
Exemple #10
0
 public LTNewHeroBattleAPI(EB.Sparx.EndPoint endPoint) : base(endPoint)
 {
 }