Esempio n. 1
0
        static StackObject *ProcessCache_5(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, 4);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.ArraySegment <System.Byte> @buffer = (System.ArraySegment <System.Byte>) typeof(System.ArraySegment <System.Byte>).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 @version = (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);
            System.String @name = (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, 4);
            EB.Sparx.DataCacheManager instance_of_this_method = (EB.Sparx.DataCacheManager) typeof(EB.Sparx.DataCacheManager).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.ProcessCache(@name, @version, @buffer);

            return(__ret);
        }
Esempio n. 2
0
        static StackObject *ProcessCaches_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, 4);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Action <System.Int32, System.String> @addPrgAct = (System.Action <System.Int32, System.String>) typeof(System.Action <System.Int32, 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.Action <System.String> @callback = (System.Action <System.String>) typeof(System.Action <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);
            System.Collections.Hashtable @configs = (System.Collections.Hashtable) typeof(System.Collections.Hashtable).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

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

            instance_of_this_method.ProcessCaches(@configs, @callback, @addPrgAct);

            return(__ret);
        }
Esempio n. 3
0
        static StackObject *LoadAll_2(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.DataCacheManager instance_of_this_method = (EB.Sparx.DataCacheManager) typeof(EB.Sparx.DataCacheManager).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.LoadAll();

            return(__ret);
        }
Esempio n. 4
0
        static StackObject *GetVersions_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.DataCacheManager instance_of_this_method = (EB.Sparx.DataCacheManager) typeof(EB.Sparx.DataCacheManager).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.GetVersions();

            object obj_result_of_this_method = result_of_this_method;

            if (obj_result_of_this_method is CrossBindingAdaptorType)
            {
                return(ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance));
            }
            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Esempio n. 5
0
        static StackObject *RegisterFlatBuffersEntity_1(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);
            EB.Sparx.DataCacheManager.OnFlatBuffersDataCacheUpdated @onupdated = (EB.Sparx.DataCacheManager.OnFlatBuffersDataCacheUpdated) typeof(EB.Sparx.DataCacheManager.OnFlatBuffersDataCacheUpdated).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 @name = (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.DataCacheManager instance_of_this_method = (EB.Sparx.DataCacheManager) typeof(EB.Sparx.DataCacheManager).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.RegisterFlatBuffersEntity(@name, @onupdated);

            return(__ret);
        }
Esempio n. 6
0
        private void InitializeOfflineData()
        {
            EB.Sparx.DataCacheManager manager = SparxHub.Instance.GetManager <EB.Sparx.DataCacheManager>();

            manager.RegisterJsonEntity("GuideCombat", null);

            manager.RegisterFlatBuffersEntity("Combat", OnFlatBuffersDataCacheUpdated);
            manager.RegisterFlatBuffersEntity("Economy", OnFlatBuffersDataCacheUpdated);
            manager.RegisterFlatBuffersEntity("Task", OnFlatBuffersDataCacheUpdated);
            manager.RegisterFlatBuffersEntity("Resource", OnFlatBuffersDataCacheUpdated);
            manager.RegisterFlatBuffersEntity("Scene", OnFlatBuffersDataCacheUpdated);
            manager.RegisterFlatBuffersEntity("Character", OnFlatBuffersDataCacheUpdated);
            manager.RegisterFlatBuffersEntity("Guide", OnFlatBuffersDataCacheUpdated);
            manager.RegisterFlatBuffersEntity("Event", OnFlatBuffersDataCacheUpdated);
            manager.RegisterFlatBuffersEntity("Vip", OnFlatBuffersDataCacheUpdated);
            manager.RegisterFlatBuffersEntity("Alliance", OnFlatBuffersDataCacheUpdated);
            manager.RegisterFlatBuffersEntity("Shop", OnFlatBuffersDataCacheUpdated);
            manager.RegisterFlatBuffersEntity("NewGameConfig", OnFlatBuffersDataCacheUpdated);
            manager.RegisterFlatBuffersEntity("Gacha", OnFlatBuffersDataCacheUpdated);


            manager.OnBufferHandler += OnFlatBuffersUpdated;
        }