Exemplo n.º 1
0
 /// <summary>
 /// 会被LuaCodeGen的Custom接口调用
 /// </summary>
 /// <param name="add"></param>
 static public void OnAddCustomClass(LuaCodeGen.ExportGenericDelegate add)
 {
     foreach (var kvp in Type2MemberExport)
     {
         add(kvp.Key, null);
     }
 }
Exemplo n.º 2
0
        public static void OnAddCustomClass(LuaCodeGen.ExportGenericDelegate add)
        {
            // below lines only used for demostrate how to add custom class to export, can be delete on your app

            add(typeof(System.Func <int>), null);
            add(typeof(System.Action <int, string>), null);
            add(typeof(System.Action <int, Dictionary <int, object> >), null);
            add(typeof(List <int>), "ListInt");
            add(typeof(List <SLua.LuaTable>), "ListLuaTable");
            add(typeof(Dictionary <int, string>), "DictIntStr");
            add(typeof(string), "String");
            add(typeof(List <BundleSmallData>), "ListBundleSmallData");
            add(typeof(System.Uri), "Uri");
            add(typeof(List <WWWRequest>), "ListWWWRequest");
            add(typeof(System.StringComparison), null);
            add(typeof(List <string>), "ListString");
            add(typeof(System.Net.Sockets.SocketError), null);
            add(typeof(List <byte>), null);
            add(typeof(List <Vector3>), "ListVector3");
            add(typeof(List <Component>), "ListComponent");
            add(typeof(List <object>), "ListObject");
            add(typeof(UnityEngine.Ping), "Ping");

            // add your custom class here
            // add( type, typename)
            // type is what you want to export
            // typename used for simplify generic type name or rename, like List<int> named to "ListInt", if not a generic type keep typename as null or rename as new type name
        }
Exemplo n.º 3
0
        public static void OnAddCustomClass(LuaCodeGen.ExportGenericDelegate add)
        {
            add(typeof(System.Func <int>), null);
            add(typeof(System.Action <int, string>), null);
            add(typeof(System.Action <int, Dictionary <int, object> >), null);
            add(typeof(string), "System.String");
            add(typeof(System.Array), "System.Array");
            add(typeof(System.Collections.ArrayList), "System.ArrayList");
            add(typeof(System.Collections.Hashtable), "System.Collections.Hashtable");
            add(typeof(System.SByte), "System.SByte");
            add(typeof(System.Byte), "System.Byte");
            add(typeof(System.Int16), "System.Int16");
            add(typeof(System.UInt16), "System.UInt16");
            add(typeof(System.Int32), "System.Int32");
            add(typeof(System.UInt32), "System.UInt32");
            add(typeof(System.Int64), "System.Int64");
            add(typeof(System.UInt64), "System.UInt64");
            add(typeof(System.Single), "System.Single");
            add(typeof(System.Double), "System.Double");
            add(typeof(System.Convert), "System.Convert");
            add(typeof(System.TypeCode), "System.TypeCode");
            add(typeof(System.Type), "System.Type");
            add(typeof(System.IO.File), "System.IO.File");
            add(typeof(System.IO.Path), "System.IO.Path");
            add(typeof(System.DateTime), "System.DateTime");
            add(typeof(System.TimeSpan), "System.TimeSpan");
            add(typeof(System.Math), "System.Math");

            // add your custom class here
            // add( type, typename)
            // type is what you want to export
            // typename used for simplify generic type name or rename, like List<int> named to "ListInt", if not a generic type keep typename as null or rename as new type name
        }
Exemplo n.º 4
0
        public static void OnAddCustomClass(LuaCodeGen.ExportGenericDelegate add)
        {
            // below lines only used for demostrate how to add custom class to export, can be delete on your app
//            add(typeof(System.Func<int>), null);
//            add(typeof(System.Action<int, string>), null);
//            add(typeof(System.Action<int, Dictionary<int, object>>), null);
//            add(typeof(List<int>), "ListInt");
//            add(typeof(Dictionary<int, string>), "DictIntStr");
//            add(typeof(string), "String");

            add(typeof(LuaResMananger), "LuaResMananger");
            add(typeof(LuaUtils), "LuaUtils");
            add(typeof(LuaEventManager), "LuaEventManager");
            add(typeof(LuaNetWorkManager), "LuaNetWorkManager");
            add(typeof(UIEventListener), "UIEventListener");
            add(typeof(UIPopupList), "UIPopupList");
            add(typeof(UIInput), "UIInput");
            add(typeof(UIProgressBar), "UIProgressBar");
            add(typeof(UILabel), "UILabel");

            // add your custom class here
            // add( type, typename)
            // type is what you want to export
            // typename used for simplify generic type name or rename, like List<int> named to "ListInt", if not a generic type keep typename as null or rename as new type name
        }
Exemplo n.º 5
0
        public static void OnAddCustomClass(LuaCodeGen.ExportGenericDelegate add)
        {
            add(typeof(System.Func <int>), null);
            add(typeof(System.Action <int, string>), null);
            add(typeof(System.Action <int, Dictionary <int, object> >), null);
            add(typeof(List <int>), "ListInt");
            add(typeof(Dictionary <int, string>), "DictIntStr");
            add(typeof(string), "String");

            //
//            add(typeof(System.Func<bool>), null);
//            add(typeof(UnityEngine.Events.UnityAction<bool>), null);
//            add(typeof(UnityEngine.Events.UnityAction<float>), null);
//            add(typeof(UnityEngine.Events.UnityAction<int>), null);
//            add(typeof(UnityEngine.Events.UnityAction<string>), null);
//            add(typeof(UnityEngine.Events.UnityEvent<UnityEngine.EventSystems.BaseEventData>), null);
//            add(typeof(UnityEngine.Events.UnityEvent<UnityEngine.Vector2>), null);
            //
            //add(typeof(UnityEngine.RectTransform.Edge), null);
            //add(typeof(UnityEngine.RectTransform.Axis), null);
            // add your custom class here
            // add( type, typename)
            // type is what you want to export
            // typename used for simplify generic type name or rename, like List<int> named to "ListInt", if not a generic type keep typename as null or rename as new type name
        }
Exemplo n.º 6
0
 public static void OnAddCustomClass(LuaCodeGen.ExportGenericDelegate add)
 {
     add(typeof(System.Func <int>), null);
     add(typeof(System.Action <int, string>), null);
     add(typeof(System.Action <int, Dictionary <int, object> >), null);
     add(typeof(List <int>), "ListInt");
     add(typeof(Dictionary <int, string>), "DictIntStr");
     add(typeof(string), "String");
     // add your custom class here
     // add( type, typename)
     // type is what you want to export
     // typename used for simplify generic type name or rename, like List<int> named to "ListInt", if not a generic type keep typename as null or rename as new type name
 }
Exemplo n.º 7
0
 public static void OnAddNGUIClass(LuaCodeGen.ExportGenericDelegate add)
 {
     /*
      * add(typeof(UIRoot), null);
      * add(typeof(UIRoot.Scaling), null);
      * add(typeof(UIRect), null);
      * add(typeof(UICamera), null);
      * add(typeof(UIViewport), null);
      * add(typeof(UIPanel), null);
      * add(typeof(UILabel), null);
      * add(typeof(UIWidget), null);
      * add(typeof(UIWidget.Pivot), null);
      * add(typeof(UIRect.AnchorUpdate), null);
      * add(typeof(UIAnchor), null);
      * add(typeof(UIAtlas), null);
      * add(typeof(UIFont), null);
      * add(typeof(UITexture), null);
      * add(typeof(UISprite), null);
      * add(typeof(UIGrid), null);
      * add(typeof(UITable), null);
      * add(typeof(UIInput), null);
      * add(typeof(UIEventListener), null);
      * add(typeof(UIScrollBar), null);
      * add(typeof(UICenterOnChild), null);
      * add(typeof(UIScrollView), null);
      * add(typeof(UIButton), null);
      * add(typeof(UITextList), null);
      * add(typeof(UIPlayTween), null);
      * add(typeof(UIDragScrollView), null);
      * add(typeof(UISpriteAnimation), null);
      * add(typeof(UIWrapContent), null);
      * add(typeof(TweenWidth), null);
      * add(typeof(TweenAlpha), null);
      * add(typeof(TweenColor), null);
      * add(typeof(TweenRotation), null);
      * add(typeof(TweenPosition), null);
      * add(typeof(TweenScale), null);
      * add(typeof(TweenHeight), null);
      * add(typeof(TypewriterEffect), null);
      * add(typeof(UIToggle), null);
      * add(typeof(Localization), null);
      * add(typeof(NGUITools), null);
      * add(typeof(NGUIText), null);
      * add(typeof(EventDelegate), null);
      * add(typeof(UITweener.Method), null);
      * add(typeof(UITweener.Style), null);
      */
     // add ngui class here
     // add( type, typename)
 }
Exemplo n.º 8
0
    /**
     * Add custom class type to export.
     *
     * @param LuaCodeGen.ExportGenericDelegate cAdd - The type adder delegate.
     * @return void.
     */
    public static void OnAddCustomClass(LuaCodeGen.ExportGenericDelegate cAdd)
    {
        // add your custom class here
        // add( type, typename)
        // type is what you want to export
        // typename used for simplify generic type name or rename, like List<int> named to "ListInt", if not a generic type keep typename as null or rename as new type name.
        //cAdd(typeof(string), "String");

        cAdd(typeof(YwDebug), null);
        cAdd(typeof(YwLuaMonoBehaviourBase), null);
        cAdd(typeof(YwLuaMonoBehaviour), null);
        cAdd(typeof(YwLuaMonoDataBridge), null);
        cAdd(typeof(LgLuaMonoDataBridge), null);
    }
Exemplo n.º 9
0
        public static void OnAddCustomClass(LuaCodeGen.ExportGenericDelegate add)
        {
            // 以下几行仅用于演示如何添加自定义类导出,可以在您的应用程序上删除

            add(typeof(System.Func <int>), null);
            add(typeof(System.Action <int, string>), null);
            add(typeof(System.Action <int, Dictionary <int, object> >), null);
            add(typeof(List <int>), "ListInt");
            add(typeof(Dictionary <int, string>), "DictIntStr");
            add(typeof(string), "String");

            // 在此处添加自定义类
            // 添加(类型,类型名称)
            // 类型是要导出的内容
            // 用于简化泛型类型名或重命名的typename,如List<int>命名为“ListInt”,如果不是泛型类型,则保持typename为null或重命名为新类型名
        }
Exemplo n.º 10
0
        public static void OnAddCustomClass(LuaCodeGen.ExportGenericDelegate add)
        {
            // below lines only used for demostrate how to add custom class to export, can be delete on your app

            add(typeof(System.Func <int>), null);
            add(typeof(System.Action <int, string>), null);
            add(typeof(System.Action <int, Dictionary <int, object> >), null);
            add(typeof(List <int>), "ListInt");
            add(typeof(Dictionary <int, string>), "DictIntStr");
            add(typeof(string), "String");
            add(typeof(System.Func <Hugula.Loader.CRequest, bool>), null);
            // add your custom class here
            // add( type, typename)
            // type is what you want to export
            // typename used for simplify generic type name or rename, like List<int> named to "ListInt", if not a generic type keep typename as null or rename as new type name
        }
Exemplo n.º 11
0
        public static void OnAddCustomClass(LuaCodeGen.ExportGenericDelegate add)
        {
            // below lines only used for demostrate how to add custom class to export, can be delete on your app

            add(typeof(System.Func <int>), null);
            add(typeof(System.Action <int, string>), null);
            add(typeof(System.Action <int, Dictionary <int, object> >), null);
            add(typeof(List <int>), "ListInt");
            add(typeof(Dictionary <int, string>), "DictIntStr");
            add(typeof(string), "String");

            // 添加Lean相关

            add(typeof(TweenAction), null);
            add(typeof(LeanTweenType), null);
            add(typeof(LTDescr), null);
            add(typeof(LTUtility), null);
            add(typeof(LeanTween), null);
            add(typeof(LTBezier), null);
            add(typeof(LTBezierPath), null);
            add(typeof(LTSpline), null);
            add(typeof(LTRect), null);
            add(typeof(LTEvent), null);
            add(typeof(LTGUI), null);


            // X相关
            add(typeof(XConf), null);
            add(typeof(XLoading), null);
            add(typeof(XApp), null);

            add(typeof(XPool), null);
            add(typeof(XSinglePool), null);
            add(typeof(XIntKeyPool), null);
            add(typeof(XStrKeyPool), null);
            add(typeof(XGOSinglePool), null);
            add(typeof(XGOIntKeyPool), null);
            add(typeof(XGOStrKeyPool), null);
            add(typeof(XPoolManager), null);
            add(typeof(XLoadDesc), null);
            add(typeof(XLoad), null);

            // add your custom class here
            // add( type, typename)
            // type is what you want to export
            // typename used for simplify generic type name or rename, like List<int> named to "ListInt", if not a generic type keep typename as null or rename as new type name
        }
Exemplo n.º 12
0
        public static void OnAddCustomClass(LuaCodeGen.ExportGenericDelegate add)
        {
            // below lines only used for demostrate how to add custom class to export, can be delete on your app

            add(typeof(System.Func <int>), null);
            add(typeof(System.Action <int, string>), null);
            add(typeof(System.Action <int, Dictionary <int, object> >), null);
            add(typeof(List <int>), "ListInt");
            //add(typeof(List<UnityEngine.Sprite>), null);
            // .net 4.6 export class not match used class on runtime, so skip it
            //add(typeof(Dictionary<int, string>), "DictIntStr");
            add(typeof(string), "String");

            // add your custom class here
            // add( type, typename)
            // type is what you want to export
            // typename used for simplify generic type name or rename, like List<int> named to "ListInt", if not a generic type keep typename as null or rename as new type name
        }
Exemplo n.º 13
0
        public static void OnAddCustomClass(LuaCodeGen.ExportGenericDelegate add)
        {
            // add(typeof(System.Func<int>), null);
            // add(typeof(System.Action<int, string>), null);
            // add(typeof(System.Action<int, Dictionary<int, object>>), null);
            // add(typeof(List<int>), "ListInt");
            // add(typeof(Dictionary<int, string>), "DictIntStr");
            // add(typeof(string), "String");
            add(typeof(BinaryReader), "BinaryReader");
            add(typeof(BinaryWriter), "BinaryWriter");
            add(typeof(BestHTTP.HTTPRequest), "HTTPRequest");
            add(typeof(BestHTTP.HTTPResponse), "HTTPResponse");
            add(typeof(BestHTTP.HTTPRequestStates), "HTTPRequestStates");
            add(typeof(BackgroundMusic), "BackgroundMusic");

            // add your custom class here
            // add( type, typename)
            // type is what you want to export
            // typename used for simplify generic type name or rename, like List<int> named to "ListInt", if not a generic type keep typename as null or rename as new type name
        }
Exemplo n.º 14
0
 public static void OnAddCustomClass(LuaCodeGen.ExportGenericDelegate add)
 {
     add(typeof(System.Func <int>), null);
     add(typeof(System.Action <int, string>), null);
     add(typeof(System.Action <int, Dictionary <int, object> >), null);
     add(typeof(List <int>), "ListInt");
     add(typeof(Dictionary <int, string>), "DictIntStr");
     add(typeof(string), "String");
     // add your custom class here
     // add( type, typename)
     // type is what you want to export
     // typename used for simplify generic type name or rename, like List<int> named to "ListInt", if not a generic type keep typename as null or rename as new type name
     add(typeof(Singleton <ConfigMgr>), "ConfigMgr");
     add(typeof(Singleton <ResMgr>), "ResMgr");
     add(typeof(Singleton <SceneMgr>), "SceneMgr");
     add(typeof(Singleton <NetMgr>), "NetMgr");
     // NGUI
     add(typeof(UIEventListener), "UIEventListener");
     add(typeof(UILabel), "UILabel");
 }
Exemplo n.º 15
0
 public static void OnAddExporClass(LuaCodeGen.ExportGenericDelegate _add, LuaCodeGen.ExportType _type)
 {
     // UnityEngine
     if (_type == LuaCodeGen.ExportType.UnityEngine)
     {
         _add(typeof(UnityEngine.Object), null);
         _add(typeof(UnityEngine.GameObject), null);
         _add(typeof(UnityEngine.Transform), null);
         _add(typeof(UnityEngine.Vector2), null);
         _add(typeof(UnityEngine.Vector3), null);
         _add(typeof(UnityEngine.Vector4), null);
         _add(typeof(UnityEngine.Quaternion), null);
         _add(typeof(UnityEngine.Matrix4x4), null);
         _add(typeof(UnityEngine.Color), null);
     }
     else if (_type == LuaCodeGen.ExportType.UnityEngineUI)
     {
         _add(typeof(UnityEngine.EventSystems.EventSystem), null);
         _add(typeof(UnityEngine.Events.UnityEvent), null);
         _add(typeof(UnityEngine.Events.UnityEventBase), null);
         _add(typeof(UnityEngine.UI.Button.ButtonClickedEvent), null);
         _add(typeof(UnityEngine.UI.Graphic), null);
         _add(typeof(UnityEngine.UI.Text), null);
         _add(typeof(UnityEngine.UI.Image), null);
         _add(typeof(UnityEngine.UI.Button), null);
         _add(typeof(UnityEngine.UI.InputField), null);
         _add(typeof(UnityEngine.UI.Toggle.ToggleEvent), null);
         _add(typeof(UnityEngine.UI.Toggle), null);
     }
     else if (_type == LuaCodeGen.ExportType.DotNET)
     {
         // .NET
         _add(typeof(System.Int32), null);
         _add(typeof(System.String), null);
     }
     else if (_type == LuaCodeGen.ExportType.Custom)
     {
         //_add( typeof( SignalSystem ), null );
     }
 }
Exemplo n.º 16
0
        public static void OnAddCustomClass(LuaCodeGen.ExportGenericDelegate add)
        {
            add(typeof(System.Func <int>), null);
            add(typeof(System.Action <int, string>), null);
            add(typeof(System.Action <int, Dictionary <int, object> >), null);
            add(typeof(List <int>), "ListInt");
            add(typeof(Dictionary <int, string>), "DictIntStr");
            add(typeof(string), "String");

            add(typeof(Log), "Log");
            add(typeof(KBehaviour), "KBehaviour");
            add(typeof(UIController), "UIController");
            add(typeof(LuaUIController), "LuaUIController");
            add(typeof(I18NModule), "I18N");
            add(typeof(Cookie), "Cookie");
            add(typeof(UIModule), "UIModule");
            // add your custom class here
            // add( type, typename)
            // type is what you want to export
            // typename used for simplify generic type name or rename, like List<int> named to "ListInt", if not a generic type keep typename as null or rename as new type name
            add(typeof(Lua2csMessenger), "Lua2csMessenger");
        }
Exemplo n.º 17
0
 public static void OnAddCustomClass(LuaCodeGen.ExportGenericDelegate add)
 {
     add(typeof(System.Func <int>), null);
     add(typeof(System.Action <int, string>), null);
     add(typeof(System.Action <int, Dictionary <int, object> >), null);
     add(typeof(CameraMove), "CameraMove");
     add(typeof(JoystickManager), "JoystickManager");
     add(typeof(LuaBaseEvent), "LuaBaseEvent");
     add(typeof(LuaEventManager), "LuaEventManager");
     add(typeof(LuaFixedUpdateEvent), "LuaFixedUpdateEvent");
     add(typeof(LuaUpdateEvent), "LuaUpdateEvent");
     add(typeof(LuaCollisionTriggerEvent), "LuaCollisionTriggerEvent");
     add(typeof(LuaManager), "LuaManager");
     add(typeof(ResourceManager), "ResourceManager");
     add(typeof(UpdateManager), "UpdateManager");
     add(typeof(FileManager), "FileManager");
     add(typeof(TcpSocket), "TcpSocket");
     // add your custom class here
     // add( type, typename)
     // type is what you want to export
     // typename used for simplify generic type name or rename, like List<int> named to "ListInt", if not a generic type keep typename as null or rename as new type name
 }
Exemplo n.º 18
0
        public static void OnAddCustomClass(LuaCodeGen.ExportGenericDelegate add)
        {
            // below lines only used for demostrate how to add custom class to export, can be delete on your app

            add(typeof(System.Func <int>), null);
            add(typeof(System.Action <int, string>), null);
            add(typeof(System.Action <int, Dictionary <int, object> >), null);
            add(typeof(List <int>), "ListInt");
            add(typeof(Dictionary <int, string>), "DictIntStr");
            add(typeof(string), "String");
            add(typeof(System.Diagnostics.Stopwatch), null);
            add(typeof(System.IO.File), null);
            add(typeof(System.IO.FileInfo), null);
            add(typeof(System.IO.Directory), null);
            add(typeof(System.IO.DirectoryInfo), null);
            //add(typeof(DG.Tweening.DOTween), null);
            //add(typeof(DG.Tweening.DOTweenUtils46), null);
            //add(typeof(DG.Tweening.DOVirtual), null);
            //add(typeof(DG.Tweening.Sequence), null);
            //add(typeof(DG.Tweening.Tweener), null);
            //add(typeof(DG.Tweening.Tween), null);
            //add(typeof(DG.Tweening.AutoPlay), null);
            //add(typeof(DG.Tweening.AxisConstraint), null);
            //add(typeof(DG.Tweening.Ease), null);
            //add(typeof(DG.Tweening.LogBehaviour), null);
            //add(typeof(DG.Tweening.LoopType), null);
            //add(typeof(DG.Tweening.PathMode), null);
            //add(typeof(DG.Tweening.PathType), null);
            //add(typeof(DG.Tweening.RotateMode), null);
            //add(typeof(DG.Tweening.ScrambleMode), null);
            //add(typeof(DG.Tweening.TweenType), null);
            //add(typeof(DG.Tweening.UpdateType), null);
            // add your custom class here
            // add( type, typename)
            // type is what you want to export
            // typename used for simplify generic type name or rename, like List<int> named to "ListInt", if not a generic type keep typename as null or rename as new type name
        }
Exemplo n.º 19
0
 public static void OnAddCustomClass(LuaCodeGen.ExportGenericDelegate add)
 {
     add(typeof(System.Func <int>), null);
     add(typeof(System.Action <int, string>), null);
     add(typeof(System.Action <int, Dictionary <int, object> >), null);
     add(typeof(System.Exception), "System.Exception");
     add(typeof(string), "System.String");
     add(typeof(System.Array), "System.Array");
     add(typeof(System.Collections.ArrayList), "System.Collections.ArrayList");
     add(typeof(System.Collections.Hashtable), "System.Collections.Hashtable");
     add(typeof(System.Collections.BitArray), "System.Collections.BitArray");
     add(typeof(System.Collections.Queue), "System.Collections.Queue");
     add(typeof(System.Collections.Stack), "System.Collections.Stack");
     add(typeof(System.Collections.SortedList), "System.Collections.SortedList");
     add(typeof(byte[]), "ByteArray");
     add(typeof(System.Boolean), "System.Boolean");
     add(typeof(System.SByte), "System.SByte");
     add(typeof(System.Byte), "System.Byte");
     add(typeof(System.Int16), "System.Int16");
     add(typeof(System.UInt16), "System.UInt16");
     add(typeof(System.Int32), "System.Int32");
     add(typeof(System.UInt32), "System.UInt32");
     add(typeof(System.Int64), "System.Int64");
     add(typeof(System.UInt64), "System.UInt64");
     add(typeof(System.Single), "System.Single");
     add(typeof(System.Double), "System.Double");
     add(typeof(System.Convert), "System.Convert");
     add(typeof(System.TypeCode), "System.TypeCode");
     add(typeof(System.Type), "System.Type");
     add(typeof(System.IO.File), "System.IO.File");
     add(typeof(System.IO.Path), "System.IO.Path");
     add(typeof(System.IO.Directory), "System.IO.Directory");
     add(typeof(System.IO.DirectoryInfo), "System.IO.DirectoryInfo");
     add(typeof(System.IO.Stream), "System.IO.Stream");
     add(typeof(System.IO.FileStream), "System.IO.FileStream");
     add(typeof(System.IO.BinaryReader), "System.IO.BinaryReader");
     add(typeof(System.IO.BinaryWriter), "System.IO.BinaryWriter");
     add(typeof(System.DateTime), "System.DateTime");
     add(typeof(System.TimeSpan), "System.TimeSpan");
     add(typeof(System.TimeZone), "System.TimeZone");
     add(typeof(System.Math), "System.Math");
     add(typeof(System.Random), "System.Random");
     add(typeof(System.Delegate), "System.Delegate");
     add(typeof(System.Text.StringBuilder), "System.Text.StringBuilder");
     add(typeof(System.Text.Encoding), "System.Text.Encoding");
     add(typeof(System.Text.ASCIIEncoding), "System.Text.ASCIIEncoding");
     add(typeof(System.Text.UTF8Encoding), "System.Text.UTF8Encoding");
     add(typeof(System.Text.UnicodeEncoding), "System.Text.UnicodeEncoding");
     add(typeof(System.Text.RegularExpressions.Regex), "System.Text.RegularExpressions.Regex");
     add(typeof(System.Text.RegularExpressions.Match), "System.Text.RegularExpressions.Match");
     add(typeof(System.Text.RegularExpressions.MatchCollection), "System.Text.RegularExpressions.MatchCollection");
     add(typeof(System.Text.RegularExpressions.Group), "System.Text.RegularExpressions.Group");
     add(typeof(System.Text.RegularExpressions.GroupCollection), "System.Text.RegularExpressions.GroupCollection");
     add(typeof(System.Text.RegularExpressions.Capture), "System.Text.RegularExpressions.Capture");
     add(typeof(System.Text.RegularExpressions.CaptureCollection), "System.Text.RegularExpressions.CaptureCollection");
     add(typeof(System.GC), "System.GC");
     add(typeof(LinkedListNode <GameFramework.EntityInfo>), "LinkedListNodeEntityInfo");
     add(typeof(KeyValuePair <int, int>), "IntIntPair");
     add(typeof(KeyValuePair <int, float>), "IntFloatPair");
     add(typeof(KeyValuePair <int, string>), "IntStrPair");
     add(typeof(KeyValuePair <int, object>), "IntObjPair");
     add(typeof(KeyValuePair <int, UnityEngine.Object>), "IntUobjPair");
     add(typeof(KeyValuePair <string, int>), "StrIntPair");
     add(typeof(KeyValuePair <string, float>), "StrFloatPair");
     add(typeof(KeyValuePair <string, string>), "StrStrPair");
     add(typeof(KeyValuePair <string, object>), "StrObjPair");
     add(typeof(KeyValuePair <string, UnityEngine.Object>), "StrUobjPair");
     // add your custom class here
     // add( type, typename)
     // type is what you want to export
     // typename used for simplify generic type name or rename, like List<int> named to "ListInt", if not a generic type keep typename as null or rename as new type name
 }
Exemplo n.º 20
0
        public static void OnAddCustomClass(LuaCodeGen.ExportGenericDelegate add)
        {
            add(typeof(VerifyCenter), null);
            add(typeof(System.Func <int>), null);
            add(typeof(System.Action <int, string>), null);
            add(typeof(System.Action <int, Dictionary <int, object> >), null);
            add(typeof(List <int>), "ListInt");
            // add(typeof(UnityEngine.Events.UnityEvent<Candlelight.UI.HyperText, Candlelight.UI.HyperText.LinkInfo>),
            //     "LuaUnityEventHyperTextLinkInfo");
            add(typeof(List <Sprite>), "ListSprite");
            add(typeof(List <string>), "ListString");
            // add(typeof(List<Candlelight.UI.HyperText.LinkInfo>), "ListHyperTextLinkInfo");
            add(typeof(Dictionary <string, Sprite>), "DictSprite");
            add(typeof(Dictionary <string, System.Object>), "DictObject");
            add(typeof(List <UnityEngine.EventSystems.EventTrigger.Entry>), "ListEventTriggerEntry");
            add(typeof(List <GameObject>), "ListGo");
            add(typeof(List <Vector4>), "ListVector4");
            add(typeof(List <Vector3>), "ListVector3");
            add(typeof(List <Vector2>), "ListVector2");
            add(typeof(List <Material>), "ListMaterial");
            // add(typeof(List<DynamicBone>), "ListDynamicBone");
            // add(typeof(List<DynamicBoneCollider>), "ListDynamicBoneCollider");
            add(typeof(List <CombineInstance>), "ListCombineInstance");
            add(typeof(Dictionary <string, LBoot.AssetBundleRef>), "DictAssetBundleRef");
            add(typeof(Game.EventExecutor <IPointerClickHandler>), "PointClickExecutor");
            add(typeof(bool), "Bool");
            add(typeof(object), "Object");
            add(typeof(int), "Int");
            add(typeof(long), "Long");
            add(typeof(float), "Float");
            add(typeof(double), "Double");
            add(typeof(string), "String");
            add(typeof(System.IO.Directory), null);
            add(typeof(System.IO.File), null);
            add(typeof(SearchOption), null);
            add(typeof(System.Security.Cryptography.MD5), null);
//            add(typeof(LeanTween), null);
//            add(typeof(LeanTweenType), null);
//            add(typeof(LTEvent), null);
//            add(typeof(LTDescr), null);
//            add(typeof(LTBezier), null);
//            add(typeof(LTBezierPath), null);
            // add(typeof(LTSpline), null);
//            add(typeof(LTRect), null);
//            add(typeof(LeanAudio), null);
//            add(typeof(LeanAudioOptions), null);
//            add(typeof(TweenAction), null);
            add(typeof(Go), null);
            add(typeof(GoTweenConfig), null);
            add(typeof(GoTweenCollectionConfig), null);
            add(typeof(GoTween), null);
            add(typeof(GoEaseType), null);
            add(typeof(GoLoopType), null);
            add(typeof(GoUpdateType), null);
            add(typeof(GoDuplicatePropertyRuleType), null);
            add(typeof(GoLogLevel), null);
            add(typeof(GoTweenChain), null);
            add(typeof(GoTweenFlow), null);
            add(typeof(GoTweenUtils), null);
            add(typeof(GoEaseAnimationCurve), null);
            add(typeof(GoSpline), null);
            add(typeof(GoSpline), null);
            add(typeof(GoSplineType), null);
            add(typeof(AbstractGoTween), null);
            add(typeof(AbstractGoTweenCollection), null);
            add(typeof(GoShakeType), null);
            add(typeof(GoLookAtType), null);
            add(typeof(GoSmoothingType), null);
            add(typeof(GoUpdateType), null);
            add(typeof(GoTweenState), null);
            // add(typeof(HighlightingSystem.Highlighter), null);
            // add(typeof(HighlightingSystem.HighlightingRenderer), null);
            // add(typeof(HighlightingSystem.HighlightingBase), null);
            // add(typeof(DynamicBone), null);
            // add(typeof(DynamicBoneCollider), null);
            // add(typeof(DynamicBoneHelper), null);
            add(typeof(System.DateTime), null);
            add(typeof(System.DateTimeKind), null);
            add(typeof(System.DateTimeOffset), null);
            add(typeof(System.DayOfWeek), null);
            // add(typeof(TMPro.TextMeshPro), null);
            // add(typeof(TMPro.TMP_Text), null);
            // add(typeof(TMPro.TextMeshProUGUI), null);
            // add(typeof(TMPro.TMP_FontAsset), null);
            // add(typeof(TMPro.TMP_SpriteAsset), null);
            // add(typeof(TMPro.TMP_Asset), null);
            add(typeof(CinemaDirector.Cutscene), null);
            add(typeof(CinemaDirector.TrackGroup), null);
            add(typeof(CinemaDirector.ActorTrackGroup), null);
            add(typeof(CinemaDirector.CharacterTrackGroup), null);
            add(typeof(CinemaDirector.TimelineItem), null);
            add(typeof(CinemaDirector.TimelineAction), null);
            add(typeof(CinemaDirector.CinemaGlobalAction), null);
            add(typeof(CinemaDirector.ColorTransition), null);
            add(typeof(CinemaDirector.FadeFromBlack), null);
            add(typeof(CinemaDirector.FadeFromWhite), null);
            add(typeof(CinemaDirector.FadeToBlack), null);
            add(typeof(CinemaDirector.FadeToWhite), null);
            add(typeof(CinemaDirector.SetParent), null);
            add(typeof(CinemaDirector.CinemaActorEvent), null);
            add(typeof(CinemaDirector.EnableGameObjectGlobal), null);
            add(typeof(CinemaDirector.DisableGameObjectGlobal), null);
            add(typeof(CinemaDirector.PlayAudioEvent), null);
            add(typeof(CinemaDirector.PlayOneShotAudioEvent), null);
            add(typeof(CinemaDirector.TimelineAction), null);
            add(typeof(CinemaDirector.TimelineActionFixed), null);
            add(typeof(CinemaDirector.CinemaAudio), null);
            add(typeof(CinemaDirector.PauseCutscene), null);
            add(typeof(CinemaDirector.TimelineTrack), null);
            add(typeof(CinemaDirector.CinemaGlobalEvent), null);
            add(typeof(CinemaDirector.CrossFadeAnimatorEvent), null);
            add(typeof(CinemaDirector.PlayAnimatorEvent), null);
            add(typeof(CinemaDirector.SetTriggerAnimatorEvent), null);
            add(typeof(CinemaDirector.SetBoolAnimatorEvent), null);
            add(typeof(UnityStandardAssets.ImageEffects.Bloom), null);
            add(typeof(UnityStandardAssets.ImageEffects.BloomOptimized), null);
            add(typeof(UnityStandardAssets.ImageEffects.ColorCorrectionCurves), null);
            add(typeof(UnityStandardAssets.ImageEffects.ColorCorrectionLookup), null);
            add(typeof(UnityStandardAssets.ImageEffects.FVColorCorrectionLookup), null);
            add(typeof(UnityStandardAssets.ImageEffects.PostEffectsBase), null);
            add(typeof(LightmapSwitcher), null);
            add(typeof(GameObjectCtrl), null);
            add(typeof(PostProcessCtrl), null);
            add(typeof(PostProcessCtrl2), null);
            add(typeof(SetLightMapWithDynamicLightColor), null);
            add(typeof(FogCtrl), null);
            add(typeof(WaterCtrl), null);
            add(typeof(GoInstance), null);
            add(typeof(Text_Extend), null);
            add(typeof(UGUIText_Extend), null);
            add(typeof(UIGradient), null);
            add(typeof(LinkObject), null);
            add(typeof(TextSegmentFlag), null);
            add(typeof(UnityEngine.ParticleSystemShapeType), null);
            add(typeof(UnityEngine.ParticleSystem.ShapeModule), null);
            add(typeof(UnityEngine.ParticleSystem.SizeBySpeedModule), null);
            add(typeof(UnityEngine.ParticleSystem.SizeOverLifetimeModule), null);
            add(typeof(UnityEngine.ParticleSystem.SubEmittersModule), null);
            add(typeof(UnityEngine.ParticleSystem.TextureSheetAnimationModule), null);
            add(typeof(UnityEngine.ParticleSystem.VelocityOverLifetimeModule), null);
            add(typeof(UnityEngine.ParticleSystem.RotationOverLifetimeModule), null);
            add(typeof(UnityEngine.ParticleSystem.RotationBySpeedModule), null);
            add(typeof(UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule), null);
            add(typeof(UnityEngine.ParticleSystem.ForceOverLifetimeModule), null);
            add(typeof(UnityEngine.ParticleSystem.EmissionModule), null);
            add(typeof(UnityEngine.ParticleSystem.ColorOverLifetimeModule), null);
            add(typeof(UnityEngine.ParticleSystem.ColorBySpeedModule), null);
            add(typeof(UnityEngine.ParticleSystem.CollisionModule), null);
            add(typeof(UnityEngine.ParticleSystem.EmitParams), null);
            add(typeof(UnityEngine.ParticleSystem.ExternalForcesModule), null);
            add(typeof(UnityEngine.ParticleSystem.InheritVelocityModule), null);
            add(typeof(UnityEngine.ParticleSystem.InheritVelocityModule), null);
            add(typeof(UnityEngine.ParticleSystem.InheritVelocityModule), null);
            add(typeof(UnityEngine.ParticleSystem.InheritVelocityModule), null);
            add(typeof(UnityEngine.ParticleSystem.MinMaxCurve), null);
            add(typeof(UnityEngine.ParticleSystem.MinMaxGradient), null);
            add(typeof(UnityEngine.ParticleSystem.Particle), null);
            add(typeof(UnityStandardAssets.ImageEffects.Bloom), null);
            add(typeof(UnityStandardAssets.ImageEffects.BloomOptimized), null);
            add(typeof(UnityEngine.Rendering.LightProbeUsage), null);
            add(typeof(FXAA), null);
            add(typeof(FXAAPostEffectsBase), null);
            add(typeof(AmplifyBloomManager), null);
            add(typeof(QuaternionExt), null);
            add(typeof(UniWebViewManager), null);

            //            add(typeof(TalkingDataGA), null);
            //            add(typeof(TDGAAccount), null);
            //            add(typeof(TDGAMission), null);
            //            add(typeof(TDGAItem), null);
            //            add(typeof(TDGAVirtualCurrency), null);
        }
Exemplo n.º 21
0
        public static void OnAddCustomClass(LuaCodeGen.ExportGenericDelegate add)
        {
            add(typeof(System.Func <int>), null);
            add(typeof(System.Action <int, string>), null);
            add(typeof(System.Action <int, Dictionary <int, object> >), null);
            add(typeof(List <int>), "ListInt");
            add(typeof(Dictionary <int, string>), "DictIntStr");
            add(typeof(string), "String");

            #region fairyGUI

            //add(typeof(EventContext), "EventContext");

            //add(typeof(EventDispatcher), "EventDispatcher");
            //add(typeof(EventListener), "EventListener");
            //add(typeof(InputEvent), "InputEvent");
            //add(typeof(DisplayObject), "DisplayObject");
            //add(typeof(Container), "Container");
            //add(typeof(Stage), "Stage");
            //add(typeof(Controller), "Controller");
            //add(typeof(GObject), "GObject");
            //add(typeof(GGraph), "GGraph");
            //add(typeof(GGroup), "GGroup");
            //add(typeof(GImage), "GImage");
            //add(typeof(GLoader), "GLoader");
            //add(typeof(PlayState), "PlayState");
            //add(typeof(GMovieClip), "GMovieClip");
            //add(typeof(TextFormat), "TextFormat");
            //add(typeof(GTextField), "GTextField");
            //add(typeof(GRichTextField), "GRichTextField");
            //add(typeof(GTextInput), "GTextInput");
            //add(typeof(GComponent), "GComponent");
            //add(typeof(GList), "GList");
            //add(typeof(GRoot), "GRoot");
            //add(typeof(GLabel), "GLabel");
            //add(typeof(GButton), "GButton");
            //add(typeof(GComboBox), "GComboBox");
            //add(typeof(GProgressBar), "GProgressBar");
            //add(typeof(GSlider), "GSlider");
            //add(typeof(PopupMenu), "PopupMenu");
            //add(typeof(ScrollPane), "ScrollPane");
            //add(typeof(Transition), "Transition");
            //add(typeof(UIPackage), "UIPackage");
            //add(typeof(Window), "Window");
            //add(typeof(GObjectPool), "GObjectPool");
            //add(typeof(Relations), "Relations");
            //add(typeof(RelationType), "RelationType");
            //add(typeof(Timers), "Timers");
            //add(typeof(LuaUIHelper), "");
            //add(typeof(GLuaComponent), "");
            //add(typeof(GLuaLabel), "");
            //add(typeof(GLuaButton), "");
            //add(typeof(GLuaProgressBar), "");
            //add(typeof(GLuaSlider), "");
            //add(typeof(GLuaComboBox), "");
            //add(typeof(LuaWindow), "");
            //add(typeof(TweenUtils), "");
            #endregion
            // add your custom class here
            // add( type, typename)
            // type is what you want to export
            // typename used for simplify generic type name or rename, like List<int> named to "ListInt", if not a generic type keep typename as null or rename as new type name
        }
Exemplo n.º 22
0
        public static void OnAddCustomClass(LuaCodeGen.ExportGenericDelegate add)
        {
            // below lines only used for demostrate how to add custom class to export, can be delete on your app

            add(typeof(System.Func <int>), null);
            add(typeof(System.Action <int, string>), null);
            add(typeof(System.Action <int, Dictionary <int, object> >), null);
            add(typeof(List <int>), "ListInt");
            add(typeof(Dictionary <int, string>), "DictIntStr");
            add(typeof(string), "String");

            #region NGUI
            add(typeof(UIPanel), null);
            add(typeof(UIRoot), null);
            add(typeof(UIBasicSprite), null);
            add(typeof(UITexture), null);
            add(typeof(UIInput), null);
            add(typeof(UIAtlas), null);
            add(typeof(UITextList), null);
            add(typeof(UISprite), null);
            add(typeof(TweenScale), null);
            add(typeof(TweenAlpha), null);
            add(typeof(UIScrollView), null);
            add(typeof(UIPlayTween), null);
            add(typeof(UIButton), null);
            add(typeof(UICenterOnChild), null);
            add(typeof(UIToggle), null);
            add(typeof(UIGrid), null);
            add(typeof(UISlider), null);
            add(typeof(UIScrollBar), null);
            add(typeof(SpringPanel), null);
            add(typeof(EventDelegate), null);
            add(typeof(UIEventListener), null);
            add(typeof(UILabel), null);
            add(typeof(UIRect), null);
            add(typeof(UIWidget), null);
            add(typeof(UIWidgetContainer), null);
            add(typeof(UIProgressBar), null);
            add(typeof(UIButtonColor), null);
            add(typeof(UITweener), null);
            add(typeof(UIDragDropItem), null);

            //add(typeof(SlotLine), null);
            //add(typeof(SlotMachine), null);
            //add(typeof(SlotTile), null);
            //add(typeof(LeanTween), null);
            //add(typeof(LeanTweenType), null);
            //add(typeof(LoopScrollView_ZX), null);
            //add(typeof(LoopScrollView_Items), null);
            //add(typeof(LTDescr), null);

            //add (typeof(UIBasicSprite.Flip), null);
            //add (typeof(UIWidget.Pivot), null);
            //add (typeof(List<UIWidget>), null);
            //add (typeof(UIViewport), null);
            //add (typeof(UIFont), null);
            //add (typeof(UIInputOnGUI), null);
            //add (typeof(UILocalize), null);
            //add (typeof(UIAnchor), null);
            //add (typeof(UICamera), null);
            //add (typeof(UITooltip), null);

            //add (typeof(UISpriteData), null);
            //add (typeof(UISpriteAnimation), null);
            //add (typeof(UIOrthoCamera), null);
            //add (typeof(UIStretch), null);
            //add (typeof(UI2DSprite), null);
            //add (typeof(UI2DSpriteAnimation), null);
            //add (typeof(TweenOrthoSize), null);
            //add (typeof(TweenHeight), null);
            //add (typeof(TweenColor), null);
            //add (typeof(SpringPosition), null);
            //add (typeof(AnimatedWidget), null);
            //add (typeof(TweenPosition), null);
            //add (typeof(TweenFOV), null);
            //add (typeof(TweenWidth), null);
            //add (typeof(TweenTransform), null);
            //add (typeof(TweenRotation), null);
            //add (typeof(AnimatedColor), null);
            //add (typeof(TweenVolume), null);
            //add (typeof(AnimatedAlpha), null);
            //add (typeof(UIButtonMessage), null);
            //add (typeof(UIDragResize), null);
            //add (typeof(UIForwardEvents), null);
            //add (typeof(UIToggledComponents), null);
            //add (typeof(UIButtonScale), null);
            //add (typeof(UIDragObject), null);
            //add (typeof(UICenterOnClick), null);
            //add (typeof(UIButton), null);
            //add (typeof(UIDraggableCamera), null);
            //add (typeof(UISoundVolume), null);
            //add (typeof(UIPlayAnimation), null);
            //add (typeof(UISavedOption), null);
            //add (typeof(UIEventTrigger), null);
            //add (typeof(UIPlaySound), null);
            //add (typeof(UIPopupList), null);
            //add (typeof(TypewriterEffect), null);
            //add (typeof(UIDragDropContainer), null);
            //add (typeof(UIDragScrollView), null);
            //add (typeof(UIDragDropRoot), null);
            //add (typeof(UIButtonRotation), null);
            //add (typeof(UIWrapContent), null);
            //add (typeof(UIButtonOffset), null);
            //add (typeof(UIButtonActivate), null);
            //add (typeof(UIKeyNavigation), null);
            //add (typeof(UIButtonKeys), null);
            //add (typeof(UIToggledObjects), null);
            //add (typeof(UIKeyBinding), null);
            //add (typeof(LanguageSelection), null);
            //add (typeof(UIDragCamera), null);
            //add (typeof(UITable), null);
            //add (typeof(UIImageButton), null);
            //add (typeof(BetterList));
            //add (typeof(Localization), null);
            //add (typeof(ByteReader), null);
            //add (typeof(BMGlyph), null);
            //add (typeof(NGUIMath), null);
            //add (typeof(UISnapshotPoint), null);
            //add (typeof(BMFont), null);
            //add (typeof(PropertyBinding), null);
            //add (typeof(UIDrawCall), null);
            //add (typeof(AnimationOrTween));
            //add (typeof(PropertyReference), null);
            //add (typeof(BMSymbol), null);
            //add (typeof(NGUIDebug), null);
            //add (typeof(NGUIText), null);
            //add (typeof(UIGeometry), null);
            //add (typeof(ActiveAnimation), null);
            //add (typeof(NGUITools), null);
            //add (typeof(RealTime), null);
            #endregion
            // add your custom class here
            // add( type, typename)
            // type is what you want to export
            // typename used for simplify generic type name or rename, like List<int> named to "ListInt", if not a generic type keep typename as null or rename as new type name
        }