Exemplo n.º 1
0
    static int _CreateDragonBones_UnityFactory(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                DragonBones.UnityFactory obj = new DragonBones.UnityFactory();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 1)
            {
                DragonBones.DataParser   arg0 = (DragonBones.DataParser)ToLua.CheckObject <DragonBones.DataParser>(L, 1);
                DragonBones.UnityFactory obj  = new DragonBones.UnityFactory(arg0);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: DragonBones.UnityFactory.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Exemplo n.º 2
0
 /**
  * @language zh_CN
  * 创建一个工厂。 (通常只需要一个全局工厂实例)
  * @param dataParser 龙骨数据解析器,如果不设置,则使用默认解析器。
  * @version DragonBones 3.0
  */
 public UnityFactory(DataParser dataParser = null) : base(dataParser)
 {
 }