本文整理汇总了C#中Pencil.Gaming.Scripting.LuaStatePtr类的典型用法代码示例。如果您正苦于以下问题:C# LuaStatePtr类的具体用法?C# LuaStatePtr怎么用?C# LuaStatePtr使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
LuaStatePtr类属于Pencil.Gaming.Scripting命名空间,在下文中一共展示了LuaStatePtr类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CheckOption
public static int CheckOption(LuaStatePtr l, int narg, string def, string[] lst) {
sbyte *[] lst_ = new sbyte*[lst.Length];
for (int i = 0; i < lst.Length; ++i) {
fixed(char * c = &lst[i].ToCharArray()[0]) {
sbyte * b = (sbyte *)c;
lst_[i] = b;
}
}
return LuaLDelegates.luaL_checkoption(l, narg, def, lst_);
}
示例2: lua_iscfunction
internal static extern int lua_iscfunction(LuaStatePtr l, int idx);
示例3: lua_getglobal
internal static extern void lua_getglobal(LuaStatePtr l, [MarshalAs(UnmanagedType.LPStr)] string var);
示例4: lua_pushlightuserdata
internal static extern void lua_pushlightuserdata(LuaStatePtr l, IntPtr p);
示例5: lua_close
internal static extern void lua_close(LuaStatePtr l);
示例6: lua_pushstring
internal static extern sbyte * lua_pushstring(LuaStatePtr l, [MarshalAs(UnmanagedType.LPStr)] string s);
示例7: lua_pushinteger
internal static extern void lua_pushinteger(LuaStatePtr l, int n);
示例8: lua_pushnil
internal static extern void lua_pushnil(LuaStatePtr l);
示例9: lua_toboolean
internal static extern int lua_toboolean(LuaStatePtr l, int idx);
示例10: lua_tounsignedx
internal static extern uint lua_tounsignedx(LuaStatePtr l, int idx, int * isnum);
示例11: lua_tointegerx
internal static extern int lua_tointegerx(LuaStatePtr l, int idx, int * isnum);
示例12: lua_tonumberx
internal static extern double lua_tonumberx(LuaStatePtr l, int idx, int * isnum);
示例13: lua_typename
internal static extern string lua_typename(LuaStatePtr l, int tp);
示例14: lua_type
internal static extern int lua_type(LuaStatePtr l, int idx);
示例15: lua_isuserdata
internal static extern int lua_isuserdata(LuaStatePtr l, int idx);