예제 #1
0
파일: Node.cs 프로젝트: rt-2/CodeWalker
        public override IResourceBlock[] GetReferences()
        {
            var list = new List <IResourceBlock>(base.GetReferences());

            if ((JunctionRefs != null) && (JunctionRefs.Length > 0))
            {
                JunctionRefsBlock = new ResourceSystemStructBlock <NodeJunctionRef>(JunctionRefs);
                list.Add(JunctionRefsBlock);
            }
            if ((JunctionHeightmapBytes != null) && (JunctionHeightmapBytes.Length > 0))
            {
                JunctionHeightmapBytesBlock = new ResourceSystemStructBlock <byte>(JunctionHeightmapBytes);
                list.Add(JunctionHeightmapBytesBlock);
            }
            if ((Junctions != null) && (Junctions.Length > 0))
            {
                JunctionsBlock = new ResourceSystemStructBlock <NodeJunction>(Junctions);
                list.Add(JunctionsBlock);
            }
            if ((Links != null) && (Links.Length > 0))
            {
                LinksBlock = new ResourceSystemStructBlock <NodeLink>(Links);
                list.Add(LinksBlock);
            }
            if ((Nodes != null) && (Nodes.Length > 0))
            {
                NodesBlock = new ResourceSystemStructBlock <Node>(Nodes);
                list.Add(NodesBlock);
            }


            return(list.ToArray());
        }
예제 #2
0
        public override IResourceBlock[] GetReferences()
        {
            var list = new List <IResourceBlock>();

            if ((Items != null) && (Items.Length > 0))
            {
                ItemsBlock = new ResourceSystemStructBlock <T>(Items);
                list.Add(ItemsBlock);
            }

            return(list.ToArray());
        }
예제 #3
0
        /// <summary>
        /// Returns a list of data blocks which are referenced by this block.
        /// </summary>
        public override IResourceBlock[] GetReferences()
        {
            var list = new List <IResourceBlock>();

            //if (Entries != null) list.Add(Entries);
            if (EntriesBlock == null)
            {
                EntriesBlock = new ResourceSystemStructBlock <MetaEnumEntryInfo_s>(Entries);
            }
            if (EntriesBlock != null)
            {
                list.Add(EntriesBlock);
            }

            return(list.ToArray());
        }
예제 #4
0
        public override IResourceBlock[] GetReferences()
        {
            var list = new List <IResourceBlock>();

            if (ListParts != null)
            {
                list.Add(ListParts);
            }

            if ((ListOffsets != null) && (ListOffsets.Length > 0))
            {
                ListOffsetsBlock = new ResourceSystemStructBlock <uint>(ListOffsets);
                list.Add(ListOffsetsBlock);
            }

            return(list.ToArray());
        }
예제 #5
0
        public override IResourceBlock[] GetReferences()
        {
            var list = new List <IResourceBlock>();

            if ((PolyIDs != null) && (PolyIDs.Length > 0))
            {
                PolyIDsBlock = new ResourceSystemStructBlock <ushort>(PolyIDs);
                list.Add(PolyIDsBlock);
            }
            if ((UnkData != null) && (UnkData.Length > 0))
            {
                UnkDataBlock = new ResourceSystemStructBlock <NavMeshSectorDataUnk>(UnkData);
                list.Add(UnkDataBlock);
            }


            return(list.ToArray());
        }
예제 #6
0
        public override IResourceBlock[] GetReferences()
        {
            var list = new List <IResourceBlock>(base.GetReferences());

            if (Vertices != null)
            {
                list.Add(Vertices);
            }
            if (Indices != null)
            {
                list.Add(Indices);
            }
            if (AdjPolys != null)
            {
                list.Add(AdjPolys);
            }
            if (Polys != null)
            {
                list.Add(Polys);
            }
            if (SectorTree != null)
            {
                list.Add(SectorTree);
            }

            if ((Portals != null) && (Portals.Length > 0))
            {
                PortalsBlock = new ResourceSystemStructBlock <NavMeshPortal>(Portals);
                list.Add(PortalsBlock);
            }

            if ((PortalLinks != null) && (PortalLinks.Length > 0))
            {
                PortalLinksBlock = new ResourceSystemStructBlock <ushort>(PortalLinks);
                list.Add(PortalLinksBlock);
            }



            return(list.ToArray());
        }