コード例 #1
0
ファイル: Circle.cs プロジェクト: wencong/FirstTest
    void stackDump(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        for (int i = 0; i <= count; ++i)
        {
            LuaTypes type = LuaDLL.lua_type(L, i);
            Debug.Log(type.ToString());
        }
    }
コード例 #2
0
 public static void stackDump(string action, IntPtr l)
 {
     if (bFirst)
     {
         int    top    = LuaDLL.lua_gettop(l);
         string logMsg = string.Empty;
         for (int i = 1; i <= top; ++i)
         {
             LuaTypes luaType = LuaDLL.lua_type(l, i);
             logMsg += luaType.ToString().ToLower() + "->";
         }
         Debug.Log(action + ": " + logMsg);
     }
 }
コード例 #3
0
 public override string ToString()
 {
     return("[" + Type.ToString() + ": " + Value.ToString() + "]");
 }
コード例 #4
0
 /// <summary>
 /// Returns the name of the type encoded by the value tp, which must be one the values returned by lua_type.
 /// </summary>
 public static string TypeName(this ILuaState self, LuaTypes type)
 {
     return(type.ToString());
     /// Will cause unity crash
     //return LuaDLL.lua_typename(self, type);
 }
コード例 #5
0
ファイル: LuaDLLExtension.cs プロジェクト: uiopsczc/Test
        public static string lua_typename(IntPtr luaState, LuaTypes type)
        {
            var t = (int)type;

            return(type.ToString());
        }