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()); }
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()); }
/// <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()); }
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()); }
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()); }
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()); }