예제 #1
0
        public override void OnInspectorGUI()
        {
            _checkNameRepeatSet.clear();
            _checkObjRepeatSet.clear();

            serializedObject.Update();

            // EditorGUILayout.BeginHorizontal();
            list.DoLayoutList();

            serializedObject.ApplyModifiedProperties();
        }
예제 #2
0
        /// <summary>
        /// 析构
        /// </summary>
        public static void dispose()
        {
            if (_disposed)
            {
                return;
            }

            _disposed = true;

            _httpRequestDic.forEachS(v =>
            {
                v.dispose();
            });

            _httpRequestDic.clear();

            _socketDic.forEachS(v =>
            {
                v.dispose();
            });

            _socketDic.clear();
        }
예제 #3
0
        /** 加载文件记录 */
        public void read(bool allClear)
        {
            _isAllClear = allClear;

            _dic.clear();
            _lastSet.clear();

            //allClear不读
            if (File.Exists(_path) && !_isAllClear)
            {
                XML xml = FileUtils.readFileForXML(_path);

                String oldVersion = xml.getProperty("version");

                //版本对
                if (oldVersion.Equals(_version))
                {
                    foreach (XML xl in xml.getChildrenByName("info"))
                    {
                        FileRecordData data = new FileRecordData();
                        data.lastModified = Convert.ToInt64(xl.getProperty("lastModified"));
                        data.length       = Convert.ToInt64(xl.getProperty("length"));
                        data.md5          = xl.getProperty("md5");
                        data.ex           = xl.getProperty("ex");
                        data.ex2          = xl.getProperty("ex2");
                        data.ex3          = xl.getProperty("ex3");
                        data.ex4          = xl.getProperty("ex4");

                        _dic.put(xl.getProperty("path"), data);
                        _lastSet.add(xl.getProperty("path"));

                        _isNew = false;
                    }
                }
            }
        }
예제 #4
0
 /// <summary>
 /// Set清空
 /// </summary>
 public void func_SetClear(TriggerExecutor e, TriggerArg a, SSet <object> map)
 {
     map.clear();
 }