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)); }
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); }