Beispiel #1
0
    public EditorGameBuildConfigurations()
    {
        if (mConfig == null)
        {
            mConfig = Object.FindObjectOfType <GameConfigProject>();
        }

        resourcesIpAdress = (GameConfigNet.IPAdress)EditorPrefs.GetInt("ResourcesIpAdress", 1);
        if (resourcesIpAdress == GameConfigNet.IPAdress.Userdefined)
        {
            resourcesIpAdress = GameConfigNet.IPAdress.Test;
        }

        ResetGameBuildResBools();

        if (EditorPrefs.GetString("GameBuildIsMaster", "false") == "true")
        {
            isMaster = true;
        }


        resourcesIpDatas.Add(GameConfigNet.IPAdress.Test, GameEditorConfig.testResourcesUploadServerHost);
        resourcesIpDatas.Add(GameConfigNet.IPAdress.Production, GameEditorConfig.productionResourcesUploadServerHost);

        string host;

        mAppExportPath = EditorPrefs.GetString("GameAppbuildPath", "");

        if (resourcesIpDatas.TryGetValue(resourcesIpAdress, out host))
        {
            resourcesUploadServerHost = host;
        }

        // appid                                                                    路径名字             keystorePass  keyaliasName     keyaliasPass
        //mPlayerSettingAndroid.Add("com.sincebest.jisukwx", new string[]{"jskawuxing.keystore", "jskawuxing", "jskwx", "jskawuxing"});
        //mPlayerSettingAndroid.Add("com.sincebest.dahuanqingmajiang", new string[] { "duomimj.keystore", "hnduomimj", "dahuwangjiang", "dhwjmj" });
        //mPlayerSettingAndroid.Add("common", new string[] { "sincebest.keystore", "sincebest", "sincebest", "sincebest" });
        foreach (var item in GameEditorConfig.androidKeyDic())
        {
            mPlayerSettingAndroid.Add(item.Key, item.Value);
        }

        PlayerSettings.SetScriptingDefineSymbolsForGroup(BuildTargetGroup.Android, "BESTHTTP_DISABLE_COOKIES;BESTHTTP_DISABLE_CACHING;BESTHTTP_DISABLE_SERVERSENT_EVENTS;BESTHTTP_DISABLE_SIGNALR;BESTHTTP_DISABLE_SOCKETIO;BESTHTTP_DISABLE_ALTERNATE_SSL;");
        PlayerSettings.SetScriptingDefineSymbolsForGroup(BuildTargetGroup.iOS, "BESTHTTP_DISABLE_COOKIES;BESTHTTP_DISABLE_CACHING;BESTHTTP_DISABLE_SERVERSENT_EVENTS;BESTHTTP_DISABLE_SIGNALR;BESTHTTP_DISABLE_SOCKETIO;BESTHTTP_DISABLE_ALTERNATE_SSL;");
        PlayerSettings.SetScriptingDefineSymbolsForGroup(BuildTargetGroup.Standalone, "BESTHTTP_DISABLE_COOKIES;BESTHTTP_DISABLE_CACHING;BESTHTTP_DISABLE_SERVERSENT_EVENTS;BESTHTTP_DISABLE_SIGNALR;BESTHTTP_DISABLE_SOCKETIO;BESTHTTP_DISABLE_ALTERNATE_SSL;");
        PlayerSettings.stripEngineCode = true;

        #if UNITY_IPHONE
        PlayerSettings.iOS.deferSystemGesturesMode = UnityEngine.iOS.SystemGestureDeferMode.BottomEdge;
        #endif
    }
Beispiel #2
0
    public EditorGameBuildConfigurations()
    {
        if (mConfig == null)
        {
            mConfig = Object.FindObjectOfType <GameConfigProject>();
        }
        resourcesIpAdress = GameConfigNet.IPAdress.Userdefined;
        ResetGameBuildResBools();

        if (EditorPrefs.GetString("GameBuildIsMaster", "false") == "true")
        {
            isMaster = true;
        }

        if (AseetBundleUpload.IsUseJunYu)
        {
            resourcesIpDatas.Add(GameConfigNet.IPAdress.DHAHQPTest, "http://comsweb-t.junyeer.com");
            //resourcesIpDatas.Add(GameConfigNet.IPAdress.DHAHQPProduction, "http://commons.sincebest.com");
        }
        else
        {
            resourcesIpDatas.Add(GameConfigNet.IPAdress.DHAHQPTest, "http://114.55.99.139:9029");
            resourcesIpDatas.Add(GameConfigNet.IPAdress.DHAHQPProduction, "http://commons.sincebest.com");
        }



        string host;

        mAppExportPath = EditorPrefs.GetString("GameAppbuildPath", "");

        if (resourcesIpDatas.TryGetValue(resourcesIpAdress, out host))
        {
            resourcesUploadServerHost = host;
        }

        // appid                                                                    路径名字             keystorePass  keyaliasName     keyaliasPass
        mPlayerSettingAndroid.Add("com.sincebest.jisukwx", new string[] { "jskawuxing.keystore", "jskawuxing", "jskwx", "jskawuxing" });
        mPlayerSettingAndroid.Add("com.sincebest.dahuanqingmajiang", new string[] { "duomimj.keystore", "hnduomimj", "dahuwangjiang", "dhwjmj" });
        mPlayerSettingAndroid.Add("common", new string[] { "sincebest.keystore", "sincebest", "sincebest", "sincebest" });


        PlayerSettings.SetScriptingDefineSymbolsForGroup(BuildTargetGroup.Android, "BESTHTTP_DISABLE_COOKIES;BESTHTTP_DISABLE_CACHING;BESTHTTP_DISABLE_SERVERSENT_EVENTS;BESTHTTP_DISABLE_SIGNALR;BESTHTTP_DISABLE_SOCKETIO;BESTHTTP_DISABLE_ALTERNATE_SSL;");
        PlayerSettings.SetScriptingDefineSymbolsForGroup(BuildTargetGroup.iOS, "BESTHTTP_DISABLE_COOKIES;BESTHTTP_DISABLE_CACHING;BESTHTTP_DISABLE_SERVERSENT_EVENTS;BESTHTTP_DISABLE_SIGNALR;BESTHTTP_DISABLE_SOCKETIO;BESTHTTP_DISABLE_ALTERNATE_SSL;");
        PlayerSettings.SetScriptingDefineSymbolsForGroup(BuildTargetGroup.Standalone, "BESTHTTP_DISABLE_COOKIES;BESTHTTP_DISABLE_CACHING;BESTHTTP_DISABLE_SERVERSENT_EVENTS;BESTHTTP_DISABLE_SIGNALR;BESTHTTP_DISABLE_SOCKETIO;BESTHTTP_DISABLE_ALTERNATE_SSL;");
        PlayerSettings.stripEngineCode = true;
    }
    static int get_net(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            GameConfigProject obj = (GameConfigProject)o;
            GameConfigNet     ret = obj.net;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index net on a nil value"));
        }
    }
    static int set_asyncFileOperationCallback(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            GameConfigProject obj  = (GameConfigProject)o;
            LuaFunction       arg0 = ToLua.CheckLuaFunction(L, 2);
            obj.asyncFileOperationCallback = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index asyncFileOperationCallback on a nil value"));
        }
    }
    static int get_assetBundleFilePathEncrypt(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            GameConfigProject obj = (GameConfigProject)o;
            bool ret = obj.assetBundleFilePathEncrypt;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index assetBundleFilePathEncrypt on a nil value"));
        }
    }
    static int get_isIosEnterprise(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            GameConfigProject obj = (GameConfigProject)o;
            bool ret = obj.isIosEnterprise;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index isIosEnterprise on a nil value"));
        }
    }
    static int set_assetBundleFilePathEncrypt(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            GameConfigProject obj = (GameConfigProject)o;
            bool arg0             = LuaDLL.luaL_checkboolean(L, 2);
            obj.assetBundleFilePathEncrypt = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index assetBundleFilePathEncrypt on a nil value"));
        }
    }
    static int get_asyncFileOperationCallback(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            GameConfigProject        obj = (GameConfigProject)o;
            LuaInterface.LuaFunction ret = obj.asyncFileOperationCallback;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index asyncFileOperationCallback on a nil value"));
        }
    }
    static int set_isIosEnterprise(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            GameConfigProject obj = (GameConfigProject)o;
            bool arg0             = LuaDLL.luaL_checkboolean(L, 2);
            obj.isIosEnterprise = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index isIosEnterprise on a nil value"));
        }
    }
    static int set_warningLogShow(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            GameConfigProject obj = (GameConfigProject)o;
            bool arg0             = LuaDLL.luaL_checkboolean(L, 2);
            obj.warningLogShow = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index warningLogShow on a nil value"));
        }
    }
    static int set_net(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            GameConfigProject obj  = (GameConfigProject)o;
            GameConfigNet     arg0 = (GameConfigNet)ToLua.CheckObject <GameConfigNet>(L, 2);
            obj.net = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index net on a nil value"));
        }
    }
    static int get_httpApiUrl(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            GameConfigProject obj = (GameConfigProject)o;
            string            ret = obj.httpApiUrl;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index httpApiUrl on a nil value"));
        }
    }
    static int get_ipAdressType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            GameConfigProject obj = (GameConfigProject)o;
            int ret = obj.ipAdressType;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index ipAdressType on a nil value"));
        }
    }
    static int set_customData(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            GameConfigProject obj  = (GameConfigProject)o;
            string            arg0 = ToLua.CheckString(L, 2);
            obj.customData = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index customData on a nil value"));
        }
    }
    static int get_loginServerPort(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            GameConfigProject obj = (GameConfigProject)o;
            int ret = obj.loginServerPort;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index loginServerPort on a nil value"));
        }
    }
    static int set_assetLoadType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            GameConfigProject obj = (GameConfigProject)o;
            int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
            obj.assetLoadType = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index assetLoadType on a nil value"));
        }
    }
    static int get_netTransferDataShow(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            GameConfigProject obj = (GameConfigProject)o;
            bool ret = obj.netTransferDataShow;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index netTransferDataShow on a nil value"));
        }
    }
    static int QPYX_set_assetLoadType_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        GameConfigProject QPYX_obj_YXQP = (GameConfigProject)QPYX_o_YXQP;
            int QPYX_arg0_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 2);
            QPYX_obj_YXQP.assetLoadType = QPYX_arg0_YXQP;
            return(0);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index assetLoadType on a nil value"));
        }
    }
    static int QPYX_get_asyncFileOperationCallback_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        GameConfigProject QPYX_obj_YXQP = (GameConfigProject)QPYX_o_YXQP;
            LuaInterface.LuaFunction QPYX_ret_YXQP = QPYX_obj_YXQP.asyncFileOperationCallback;
            ToLua.Push(L_YXQP, QPYX_ret_YXQP);
            return(1);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index asyncFileOperationCallback on a nil value"));
        }
    }
    static int QPYX_get_httpApiUrl_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        GameConfigProject QPYX_obj_YXQP = (GameConfigProject)QPYX_o_YXQP;
            string QPYX_ret_YXQP = QPYX_obj_YXQP.httpApiUrl;
            LuaDLL.lua_pushstring(L_YXQP, QPYX_ret_YXQP);
            return(1);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index httpApiUrl on a nil value"));
        }
    }
    static int QPYX_get_ipAdressType_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        GameConfigProject QPYX_obj_YXQP = (GameConfigProject)QPYX_o_YXQP;
            int QPYX_ret_YXQP = QPYX_obj_YXQP.ipAdressType;
            LuaDLL.lua_pushinteger(L_YXQP, QPYX_ret_YXQP);
            return(1);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index ipAdressType on a nil value"));
        }
    }
    static int QPYX_get_commonLogShow_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        GameConfigProject QPYX_obj_YXQP = (GameConfigProject)QPYX_o_YXQP;
            bool QPYX_ret_YXQP = QPYX_obj_YXQP.commonLogShow;
            LuaDLL.lua_pushboolean(L_YXQP, QPYX_ret_YXQP);
            return(1);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index commonLogShow on a nil value"));
        }
    }
    static int QPYX_set_asyncFileOperationCallback_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        GameConfigProject QPYX_obj_YXQP = (GameConfigProject)QPYX_o_YXQP;
            LuaFunction QPYX_arg0_YXQP = ToLua.CheckLuaFunction(L_YXQP, 2);
            QPYX_obj_YXQP.asyncFileOperationCallback = QPYX_arg0_YXQP;
            return(0);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index asyncFileOperationCallback on a nil value"));
        }
    }
    static int QPYX_set_assetBundleFilePathEncrypt_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        GameConfigProject QPYX_obj_YXQP = (GameConfigProject)QPYX_o_YXQP;
            bool QPYX_arg0_YXQP = LuaDLL.luaL_checkboolean(L_YXQP, 2);
            QPYX_obj_YXQP.assetBundleFilePathEncrypt = QPYX_arg0_YXQP;
            return(0);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index assetBundleFilePathEncrypt on a nil value"));
        }
    }
    static int QPYX_set_net_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        GameConfigProject QPYX_obj_YXQP = (GameConfigProject)QPYX_o_YXQP;
            GameConfigNet QPYX_arg0_YXQP = (GameConfigNet)ToLua.CheckObject <GameConfigNet>(L_YXQP, 2);
            QPYX_obj_YXQP.net = QPYX_arg0_YXQP;
            return(0);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index net on a nil value"));
        }
    }
    static int QPYX_set_luaScriptProcess_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        GameConfigProject QPYX_obj_YXQP = (GameConfigProject)QPYX_o_YXQP;
            bool QPYX_arg0_YXQP = LuaDLL.luaL_checkboolean(L_YXQP, 2);
            QPYX_obj_YXQP.luaScriptProcess = QPYX_arg0_YXQP;
            return(0);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index luaScriptProcess on a nil value"));
        }
    }
    static int QPYX_set_netLogSendServerShow_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        GameConfigProject QPYX_obj_YXQP = (GameConfigProject)QPYX_o_YXQP;
            bool QPYX_arg0_YXQP = LuaDLL.luaL_checkboolean(L_YXQP, 2);
            QPYX_obj_YXQP.netLogSendServerShow = QPYX_arg0_YXQP;
            return(0);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index netLogSendServerShow on a nil value"));
        }
    }
    static int QPYX_set_customData_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        GameConfigProject QPYX_obj_YXQP = (GameConfigProject)QPYX_o_YXQP;
            string QPYX_arg0_YXQP = ToLua.CheckString(L_YXQP, 2);
            QPYX_obj_YXQP.customData = QPYX_arg0_YXQP;
            return(0);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index customData on a nil value"));
        }
    }
Beispiel #29
0
    //private readonly string[] mIpAdressTypeName = new string[]{"自定义", "内网测试", "外网测试", "安卓正式", "AppStore", "周望远", "杨泽浪"};

    //private readonly string[] mIpAdressTypeName = new string[] { "自定义", "内网测试", "外网测试", "安卓正式", "AppStore", "周望远", "杨泽浪" };

    void OnEnable()
    {
        mConfig = target as GameConfigProject;
    }
    static int QPYX_get_net_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        GameConfigProject QPYX_obj_YXQP = (GameConfigProject)QPYX_o_YXQP;
            GameConfigNet QPYX_ret_YXQP = QPYX_obj_YXQP.net;
            ToLua.PushObject(L_YXQP, QPYX_ret_YXQP);
            return(1);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index net on a nil value"));
        }
    }