本文整理汇总了C#中LuaInterface.LuaFunction.PopValues方法的典型用法代码示例。如果您正苦于以下问题:C# LuaFunction.PopValues方法的具体用法?C# LuaFunction.PopValues怎么用?C# LuaFunction.PopValues使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LuaInterface.LuaFunction
的用法示例。
在下文中一共展示了LuaFunction.PopValues方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: System_Reflection_MemberFilter
public static Delegate System_Reflection_MemberFilter(LuaFunction func)
{
System.Reflection.MemberFilter d = (param0, param1) =>
{
int top = func.BeginPCall();
IntPtr L = func.GetLuaState();
LuaScriptMgr.PushObject(L, param0);
LuaScriptMgr.PushVarObject(L, param1);
func.PCall(top, 2);
object[] objs = func.PopValues(top);
func.EndPCall(top);
return (bool)objs[0];
};
return d;
}
示例2: UIInput_OnValidate
public static Delegate UIInput_OnValidate(LuaFunction func)
{
UIInput.OnValidate d = (param0, param1, param2) =>
{
int top = func.BeginPCall();
IntPtr L = func.GetLuaState();
LuaScriptMgr.Push(L, param0);
LuaScriptMgr.Push(L, param1);
LuaScriptMgr.Push(L, param2);
func.PCall(top, 3);
object[] objs = func.PopValues(top);
func.EndPCall(top);
return (char)objs[0];
};
return d;
}
示例3: Comparison_Transform
public static Delegate Comparison_Transform(LuaFunction func)
{
Comparison<Transform> d = (param0, param1) =>
{
int top = func.BeginPCall();
IntPtr L = func.GetLuaState();
LuaScriptMgr.Push(L, param0);
LuaScriptMgr.Push(L, param1);
func.PCall(top, 2);
object[] objs = func.PopValues(top);
func.EndPCall(top);
return (int)objs[0];
};
return d;
}
示例4: UIToggle_Validate
public static Delegate UIToggle_Validate(LuaFunction func)
{
UIToggle.Validate d = (param0) =>
{
int top = func.BeginPCall();
IntPtr L = func.GetLuaState();
LuaScriptMgr.Push(L, param0);
func.PCall(top, 1);
object[] objs = func.PopValues(top);
func.EndPCall(top);
return (bool)objs[0];
};
return d;
}
示例5: Localization_LoadFunction
public static Delegate Localization_LoadFunction(LuaFunction func)
{
Localization.LoadFunction d = (param0) =>
{
int top = func.BeginPCall();
IntPtr L = func.GetLuaState();
LuaScriptMgr.Push(L, param0);
func.PCall(top, 1);
object[] objs = func.PopValues(top);
func.EndPCall(top);
return (byte[])objs[0];
};
return d;
}
示例6: UICamera_GetTouchCallback
public static Delegate UICamera_GetTouchCallback(LuaFunction func)
{
UICamera.GetTouchCallback d = (param0) =>
{
int top = func.BeginPCall();
IntPtr L = func.GetLuaState();
LuaScriptMgr.Push(L, param0);
func.PCall(top, 1);
object[] objs = func.PopValues(top);
func.EndPCall(top);
return (UICamera.Touch)objs[0];
};
return d;
}