本文整理匯總了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);