少年修仙传客户端基础资源
leonard Wu
2018-08-02 cc7db021dd09248131ad546f5bc5806cdb2eb418
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
 
namespace UnityEditor.XCodeEditor
{
    public class PBXProject : PBXObject
    {
        protected string MAINGROUP_KEY = "mainGroup";
        protected string KNOWN_REGIONS_KEY = "knownRegions";
 
        protected bool _clearedLoc = false;
 
        public PBXProject() : base() {
        }
        
        public PBXProject( string guid, PBXDictionary dictionary ) : base( guid, dictionary ) {
        }
        
        public string mainGroupID {
            get {
                return (string)_data[ MAINGROUP_KEY ];
            }
        }
 
        public PBXList knownRegions {
            get {
                return (PBXList)_data[ KNOWN_REGIONS_KEY ];
            }
        }
 
        public void AddRegion(string region) {
            if (!_clearedLoc)
            {
                // Only include localizations we explicitly specify
                knownRegions.Clear();
                _clearedLoc = true;
            }
 
            knownRegions.Add(region);
        }
    }
}