static int Hide(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         Nova.CharacterController obj = (Nova.CharacterController)ToLua.CheckObject <Nova.CharacterController>(L, 1);
         obj.Hide();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #2
0
 static int Restore(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Nova.CharacterController obj  = (Nova.CharacterController)ToLua.CheckObject <Nova.CharacterController>(L, 1);
         Nova.IRestoreData        arg0 = (Nova.IRestoreData)ToLua.CheckObject <Nova.IRestoreData>(L, 2);
         obj.Restore(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #3
0
 static int GetRestoreData(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         Nova.CharacterController obj = (Nova.CharacterController)ToLua.CheckObject <Nova.CharacterController>(L, 1);
         Nova.IRestoreData        o   = obj.GetRestoreData();
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int Say(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Nova.CharacterController obj = (Nova.CharacterController)ToLua.CheckObject <Nova.CharacterController>(L, 1);
         string arg0 = ToLua.CheckString(L, 2);
         obj.Say(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #5
0
 static int GetCharacterControllerForName(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Nova.AutoVoiceConfigs obj = (Nova.AutoVoiceConfigs)ToLua.CheckObject <Nova.AutoVoiceConfigs>(L, 1);
         string arg0 = ToLua.CheckString(L, 2);
         Nova.CharacterController o = obj.GetCharacterControllerForName(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int get_gameState(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.CharacterController obj = (Nova.CharacterController)o;
            Nova.GameState           ret = obj.gameState;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index gameState on a nil value"));
        }
    }
    static int get_voiceFileFolder(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.CharacterController obj = (Nova.CharacterController)o;
            string ret = obj.voiceFileFolder;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index voiceFileFolder on a nil value"));
        }
    }
예제 #8
0
    static int get_stopVoiceWhenDialogueWillChange(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.CharacterController obj = (Nova.CharacterController)o;
            bool ret = obj.stopVoiceWhenDialogueWillChange;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index stopVoiceWhenDialogueWillChange on a nil value"));
        }
    }
예제 #9
0
    static int set_suppressSound(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.CharacterController obj = (Nova.CharacterController)o;
            bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.suppressSound = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index suppressSound on a nil value"));
        }
    }
예제 #10
0
    static int set_stopVoiceWhenDialogueWillChange(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.CharacterController obj = (Nova.CharacterController)o;
            bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.stopVoiceWhenDialogueWillChange = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index stopVoiceWhenDialogueWillChange on a nil value"));
        }
    }
예제 #11
0
    static int get_restorableObjectName(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.CharacterController obj = (Nova.CharacterController)o;
            string ret = obj.restorableObjectName;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index restorableObjectName on a nil value"));
        }
    }
예제 #12
0
    static int get_color(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.CharacterController obj = (Nova.CharacterController)o;
            UnityEngine.Color        ret = obj.color;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index color on a nil value"));
        }
    }
예제 #13
0
    static int get_layer(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.CharacterController obj = (Nova.CharacterController)o;
            int ret = obj.layer;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index layer on a nil value"));
        }
    }
예제 #14
0
    static int get_suppressSound(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.CharacterController obj = (Nova.CharacterController)o;
            bool ret = obj.suppressSound;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index suppressSound on a nil value"));
        }
    }
예제 #15
0
    static int set_voiceFileFolder(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.CharacterController obj = (Nova.CharacterController)o;
            string arg0 = ToLua.CheckString(L, 2);
            obj.voiceFileFolder = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index voiceFileFolder on a nil value"));
        }
    }
예제 #16
0
    static int set_gameState(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.CharacterController obj  = (Nova.CharacterController)o;
            Nova.GameState           arg0 = (Nova.GameState)ToLua.CheckObject <Nova.GameState>(L, 2);
            obj.gameState = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index gameState on a nil value"));
        }
    }
예제 #17
0
    static int set_layer(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.CharacterController obj = (Nova.CharacterController)o;
            int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
            obj.layer = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index layer on a nil value"));
        }
    }
예제 #18
0
    static int set_environmentColor(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.CharacterController obj  = (Nova.CharacterController)o;
            UnityEngine.Color        arg0 = ToLua.ToColor(L, 2);
            obj.environmentColor = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index environmentColor on a nil value"));
        }
    }
예제 #19
0
    static int _CreateNova_CharacterColor(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                Nova.CharacterController arg0 = (Nova.CharacterController)ToLua.CheckObject <Nova.CharacterController>(L, 1);
                Nova.CharacterColor.Type arg1 = (Nova.CharacterColor.Type)ToLua.CheckObject(L, 2, typeof(Nova.CharacterColor.Type));
                Nova.CharacterColor      obj  = new Nova.CharacterColor(arg0, arg1);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Nova.CharacterColor.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }