GetComponents() 공개 정적인 메소드

public static GetComponents ( int multiID ) : MultiComponentList
multiID int
리턴 MultiComponentList
예제 #1
0
        public static MultiComponentList GetComponents(int multiID)
        {
            multiID &= 0x3FFF;

            MultiComponentList mcl;

            if (ComponentsCache.TryGetValue(multiID, out mcl) && mcl != null)
            {
                return(mcl);
            }

            ComponentsCache[multiID] = mcl = MultiData.GetComponents(multiID);

            // Minax Fortress
            if (multiID == 0x1388)
            {
                // That tree...
                mcl.Remove(3405, 17, -13, 15);
                mcl.Remove(3406, 18, -14, 15);
                mcl.Remove(3393, 18, -14, 17);
            }

            if (mcl.List.Length == 0)
            {
                mcl.Resize(1, 1);
                mcl.Add(0, 0, 0, 0);
            }

            return(mcl);
        }
예제 #2
0
        public static MultiComponentList GetComponents(int multiID)
        {
            multiID &= 0x3FFF;

            MultiComponentList mcl;

            if (_ComponentsCache.TryGetValue(multiID, out mcl))
            {
                return(mcl);
            }

            _ComponentsCache.Add(multiID, mcl = MultiData.GetComponents(multiID));

            return(mcl);
        }
예제 #3
0
        public static MultiComponentList GetComponents(int multiID)
        {
            multiID &= 0x3FFF;

            MultiComponentList mcl;

            if (_ComponentsCache.TryGetValue(multiID, out mcl))
            {
                return(mcl);
            }

            _ComponentsCache.Add(multiID, mcl = MultiData.GetComponents(multiID));

            if (multiID == 0x1388)
            {
                // That tree...
                mcl.Remove(3405, 17, -13, 15);
                mcl.Remove(3406, 18, -14, 15);
                mcl.Remove(3393, 18, -14, 17);
            }

            return(mcl);
        }