Beispiel #1
0
        static StackObject *Fill_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, 5);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Object @userData = (System.Object) typeof(System.Object).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 @hotfixEntityName = (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.Int32 @typeId = ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
            System.Int32 @id = ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 5);
            Trinity.HotfixEntityData instance_of_this_method = (Trinity.HotfixEntityData) typeof(Trinity.HotfixEntityData).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.Fill(@id, @typeId, @hotfixEntityName, @userData);

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Beispiel #2
0
        public static void ShowTestEntity2(this EntityComponent entityComponent, TestEntity2Data data)
        {
            Trinity.HotfixEntityData tData = GameFramework.ReferencePool.Acquire <Trinity.HotfixEntityData>();
            tData.Fill(data.Id, data.TypeId, "TestEntity2", data);
            tData.Position = data.Position;
            tData.Rotation = data.Rotation;

            entityComponent.ShowHotfixEntity(0, tData);
        }
        public static async Task <Entity> AwaitShowTestEntity2(this EntityComponent entityComponent, TestEntity2Data data)
        {
            Trinity.HotfixEntityData tData = GameFramework.ReferencePool.Acquire <Trinity.HotfixEntityData>();
            tData.Fill(data.Id, data.TypeId, "TestEntity2", data);
            tData.Position = data.Position;
            tData.Rotation = data.Rotation;

            Entity entity = await entityComponent.AwaitShowHotfixEntity(0, tData);

            return(entity);
        }
Beispiel #4
0
        static StackObject *ShowHotfixEntity_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);
            Trinity.HotfixEntityData @data = (Trinity.HotfixEntityData) typeof(Trinity.HotfixEntityData).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.Int32 @priority = ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            UnityGameFramework.Runtime.EntityComponent @entityComponent = (UnityGameFramework.Runtime.EntityComponent) typeof(UnityGameFramework.Runtime.EntityComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);


            Trinity.EntityExtension.ShowHotfixEntity(@entityComponent, @priority, @data);

            return(__ret);
        }