コード例 #1
0
ファイル: CacheDatFile.cs プロジェクト: alexguirre/CodeWalker
 public void ReadXml(XmlNode node)
 {
     Name  = XmlMeta.GetHash(Xml.GetChildInnerText(node, "name"));
     Min   = Xml.GetChildVector3Attributes(node, "bbMin");
     Max   = Xml.GetChildVector3Attributes(node, "bbMax");
     Layer = Xml.GetChildUIntAttribute(node, "layer");
 }
コード例 #2
0
ファイル: YpdbFile.cs プロジェクト: alexguirre/CodeWalker
 public void ReadXml(XmlNode node)
 {
     ClipSet    = XmlMeta.GetHash(Xml.GetChildInnerText(node, "ClipSet"));
     Clip       = XmlMeta.GetHash(Xml.GetChildInnerText(node, "Clip"));
     Offset     = Xml.GetChildFloatAttribute(node, "Offset");
     PointCloud = new PoseMatcherPointCloud(node);
 }
コード例 #3
0
ファイル: CacheDatFile.cs プロジェクト: alexguirre/CodeWalker
 public void ReadXml(XmlNode node)
 {
     Version             = Xml.GetChildStringAttribute(node, "Version");
     FileDates           = XmlMeta.ReadItemArray <CacheFileDate>(node, "FileDates");
     AllMapNodes         = XmlMeta.ReadItemArray <MapDataStoreNode>(node, "MapDataStore");
     AllCInteriorProxies = XmlMeta.ReadItemArray <CInteriorProxy>(node, "InteriorProxies");
     AllBoundsStoreItems = XmlMeta.ReadItemArray <BoundsStoreItem>(node, "BoundsStore");
 }
コード例 #4
0
ファイル: CarVariationsFile.cs プロジェクト: z87/CodeWalker
        public CVehicleModelInfoVariation_418053801(XmlNode node)
        {
            modelName = Xml.GetChildInnerText(node, "modelName");
            XmlNode cnode;

            cnode = node.SelectSingleNode("colors");
            if (cnode != null)
            {
                var items = cnode.SelectNodes("Item");
                if (items.Count > 0)
                {
                    colors = new CVehicleModelInfoVariation_2575850962[items.Count];
                    for (int i = 0; i < items.Count; i++)
                    {
                        colors[i] = new CVehicleModelInfoVariation_2575850962(items[i]);
                    }
                }
            }
            cnode = node.SelectSingleNode("kits");
            if (cnode != null)
            {
                var items = cnode.SelectNodes("Item");
                if (items.Count > 0)
                {
                    kits = new MetaHash[items.Count];
                    for (int i = 0; i < items.Count; i++)
                    {
                        kits[i] = XmlMeta.GetHash(items[i].InnerText);
                    }
                }
            }
            cnode = node.SelectSingleNode("windowsWithExposedEdges");
            if (cnode != null)
            {
                var items = cnode.SelectNodes("Item");
                if (items.Count > 0)
                {
                    windowsWithExposedEdges = new MetaHash[items.Count];
                    for (int i = 0; i < items.Count; i++)
                    {
                        windowsWithExposedEdges[i] = XmlMeta.GetHash(items[i].InnerText);
                    }
                }
            }
            cnode = node.SelectSingleNode("plateProbabilities");
            if (cnode != null)
            {
                plateProbabilities = new PlateProbabilities(cnode);
            }
            lightSettings = (byte)Xml.GetChildIntAttribute(node, "lightSettings", "value");
            sirenSettings = (byte)Xml.GetChildIntAttribute(node, "sirenSettings", "value");
        }
コード例 #5
0
ファイル: YpdbFile.cs プロジェクト: alexguirre/CodeWalker
 public void ReadXml(XmlNode node)
 {
     SerializerVersion  = 2;    // Xml.GetChildIntAttribute(node, "SerializerVersion");
     PoseMatcherVersion = 0;    // Xml.GetChildIntAttribute(node, "PoseMatcherVersion");
     Signature          = Xml.GetChildUIntAttribute(node, "Signature");
     Unk7          = 0.033333f; // Xml.GetChildFloatAttribute(node, "Unk7");
     Unk8          = 1;         // Xml.GetChildIntAttribute(node, "Unk8");
     BoneTags      = Xml.GetChildRawUshortArray(node, "BoneTags");
     BoneTagsCount = (BoneTags?.Length ?? 0);
     WeightSet     = new PoseMatcherWeightSet(node);
     Samples       = XmlMeta.ReadItemArray <PoseMatcherMatchSample>(node, "Samples");
     SamplesCount  = (Samples?.Length ?? 0);
 }
コード例 #6
0
ファイル: CacheDatFile.cs プロジェクト: alexguirre/CodeWalker
 public void ReadXml(XmlNode node)
 {
     Name                = XmlMeta.GetHash(Xml.GetChildInnerText(node, "name"));
     ParentName          = XmlMeta.GetHash(Xml.GetChildInnerText(node, "parent"));
     ContentFlags        = Xml.GetChildUIntAttribute(node, "contentFlags");
     streamingExtentsMin = Xml.GetChildVector3Attributes(node, "streamingExtentsMin");
     streamingExtentsMax = Xml.GetChildVector3Attributes(node, "streamingExtentsMax");
     entitiesExtentsMin  = Xml.GetChildVector3Attributes(node, "entitiesExtentsMin");
     entitiesExtentsMax  = Xml.GetChildVector3Attributes(node, "entitiesExtentsMax");
     Unk1                = (byte)Xml.GetChildUIntAttribute(node, "unk1");
     Unk2                = (byte)Xml.GetChildUIntAttribute(node, "unk2");
     Unk3                = (byte)Xml.GetChildUIntAttribute(node, "unk3");
     Unk4                = (byte)Xml.GetChildUIntAttribute(node, "unk4");
 }
コード例 #7
0
ファイル: CacheDatFile.cs プロジェクト: alexguirre/CodeWalker
 public void ReadXml(XmlNode node)
 {
     Name        = XmlMeta.GetHash(Xml.GetChildInnerText(node, "name"));
     Parent      = XmlMeta.GetHash(Xml.GetChildInnerText(node, "parent"));
     Position    = Xml.GetChildVector3Attributes(node, "position");
     Orientation = Xml.GetChildVector4Attributes(node, "rotation").ToQuaternion();
     BBMin       = Xml.GetChildVector3Attributes(node, "bbMin");
     BBMax       = Xml.GetChildVector3Attributes(node, "bbMax");
     Unk01       = Xml.GetChildUIntAttribute(node, "unk01");
     Unk02       = Xml.GetChildUIntAttribute(node, "unk02");
     Unk03       = Xml.GetChildUIntAttribute(node, "unk03");
     Unk11       = Xml.GetChildULongAttribute(node, "unk11");
     Unk12       = Xml.GetChildULongAttribute(node, "unk12");
     Unk13       = Xml.GetChildULongAttribute(node, "unk13");
     Unk14       = Xml.GetChildULongAttribute(node, "unk14");
 }
コード例 #8
0
ファイル: CacheDatFile.cs プロジェクト: alexguirre/CodeWalker
 public void ReadXml(XmlNode node)
 {
     FileName  = XmlMeta.GetHash(Xml.GetChildInnerText(node, "fileName"));
     TimeStamp = DateTime.FromFileTimeUtc((long)Xml.GetChildULongAttribute(node, "timeStamp"));
     FileID    = Xml.GetChildUIntAttribute(node, "fileID");
 }
コード例 #9
0
ファイル: CarVariationsFile.cs プロジェクト: z87/CodeWalker
 public PlateProbabilities_938618322(XmlNode node)
 {
     Name  = XmlMeta.GetHash(Xml.GetChildInnerText(node, "Name"));
     Value = Xml.GetChildUIntAttribute(node, "Value", "value");
 }