Esempio n. 1
0
    static int SetMd5Key(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 1 && LuaScriptMgr.CheckTypes(L, 1, typeof(string)))
        {
            string o = LuaScriptMgr.GetString(L, 1);
            NetWriter.SetMd5Key(o);
        }

        return(0);
    }
Esempio n. 2
0
 static int SetMd5Key(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         string arg0 = ToLua.CheckString(L, 1);
         NetWriter.SetMd5Key(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }