• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Unreal.PCCObject类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中ME3Explorer.Unreal.PCCObject的典型用法代码示例。如果您正苦于以下问题:C# PCCObject类的具体用法?C# PCCObject怎么用?C# PCCObject使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



PCCObject类属于ME3Explorer.Unreal命名空间,在下文中一共展示了PCCObject类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: openGUIDCacheToolStripMenuItem_Click

 private void openGUIDCacheToolStripMenuItem_Click(object sender, EventArgs e)
 {
     BitConverter.IsLittleEndian = true;
     pcc = new PCCObject(ME3Directory.cookedPath + "GuidCache.pcc");
     ReadGUIDs(pcc.Exports[0].Data);
     RefreshLists();
 }
开发者ID:CreeperLava,项目名称:ME3Explorer,代码行数:7,代码来源:GUIDCacheEditor.cs


示例2: AnimNodeSlot

        public AnimNodeSlot(PCCObject Pcc, int Index)
        {
            pcc = Pcc;
            MyIndex = Index;
            if (pcc.isExport(Index))
                data = pcc.Exports[Index].Data;
            Props = PropertyReader.getPropList(pcc, data);
            BitConverter.IsLittleEndian = true;
            Children = new List<ChildrenEntry>();            
            foreach (PropertyReader.Property p in Props)
                switch (pcc.getNameEntry(p.Name))
                {

                    case "bSkipTickWhenZeroWeight":
                        if (p.raw[p.raw.Length - 1] == 1)
                            bSkipTickWhenZeroWeight = true;
                        break;
                    case "NodeName":
                        NodeName = p.Value.IntValue;
                        break;
                    case "NodeTotalWeight":
                        NodeTotalWeight = BitConverter.ToSingle(p.raw, p.raw.Length - 4);
                        break;
                    case "Children":
                        ReadChildren(p.raw);
                        break;
                }
        }
开发者ID:CreeperLava,项目名称:ME3Explorer,代码行数:28,代码来源:AnimNodeSlot.cs


示例3: ToString

 public string ToString(PCCObject p)
 {
     if (val == -1)
         return enumName + ", " + values[0];
     else
         return p.getNameEntry(type) + ", " + p.getNameEntry(val);
 }
开发者ID:Dybuk,项目名称:ME3Explorer,代码行数:7,代码来源:InterpTracks.cs


示例4: startScanToolStripMenuItem_Click

 private void startScanToolStripMenuItem_Click(object sender, EventArgs e)
 {
     string pathcook = ME3Directory.cookedPath;
     DebugOutput.StartDebugger("ScriptDB");
     string[] files = Directory.GetFiles(pathcook, "*.pcc");
     int count = 1;
     database = new List<ScriptEntry>();
     foreach (string file in files)
     {
         DebugOutput.PrintLn(count + "\\" + files.Length + " : Scanning " + Path.GetFileName(file) + " ...");
         PCCObject pcc = new PCCObject(file);
         int count2 = 0;
         foreach (PCCObject.ExportEntry ent in pcc.Exports)
         {
             if (ent.ClassName == "Function")
             {
                 Function f = new Function(ent.Data, pcc);
                 ScriptEntry n = new ScriptEntry();
                 n.file = Path.GetFileName(file);
                 n.name = ent.PackageFullName + "." + ent.ObjectName;
                 n.script = f.ToRawText(false);
                 database.Add(n);
                 DebugOutput.PrintLn("\tFound \"" + n.name + "\"",false);
             }
             count2++;
         }
         {
             pb1.Maximum = files.Length;
             pb1.Value = count;
         }
         count++;
     }
     RefreshList();
 }
开发者ID:CreeperLava,项目名称:ME3Explorer,代码行数:34,代码来源:ScriptDB.cs


示例5: Level

 public Level(PCCObject Pcc, int index, bool SimpleRead = false)
 {
     memory = Pcc.Exports[index].Data;
     memlength = memory.Length;
     pcc = Pcc;
     Deserialize(SimpleRead);
 }
开发者ID:CreeperLava,项目名称:ME3Explorer,代码行数:7,代码来源:Level.cs


示例6: WwiseAmbientSound

        public WwiseAmbientSound(PCCObject Pcc, int Index)
        {
            pcc = Pcc;
            MyIndex = Index;
            if (pcc.isExport(Index))
                data = pcc.Exports[Index].Data;
            Props = PropertyReader.getPropList(pcc, data);
            BitConverter.IsLittleEndian = true;
            foreach (PropertyReader.Property p in Props)
                switch (pcc.getNameEntry(p.Name))
                {

                    case "bAutoPlay":
                        if (p.raw[p.raw.Length - 1] == 1)
                            bAutoPlay = true;
                        break;
                    case "Tag":
                        Tag = p.Value.IntValue;
                        break;
                    case "UniqueTag":
                        UniqueTag = p.Value.IntValue;
                        break;
                    case "location":
                        location = new Vector3(BitConverter.ToSingle(p.raw, p.raw.Length - 12),
                                              BitConverter.ToSingle(p.raw, p.raw.Length - 8),
                                              BitConverter.ToSingle(p.raw, p.raw.Length - 4));
                        break;
                }
            MyMatrix = Matrix.Translation(location);
            GenerateMesh();
        }
开发者ID:CreeperLava,项目名称:ME3Explorer,代码行数:31,代码来源:WwiseAmbientSound.cs


示例7: StaticMeshCollectionActor

        public StaticMeshCollectionActor(PCCObject Pcc, int Index)
        {
            pcc = Pcc;
            MyIndex = Index;
            if (pcc.isExport(Index))
                data = pcc.Exports[Index].Data;
            Props = PropertyReader.getPropList(pcc, data);
            BitConverter.IsLittleEndian = true;
            foreach (PropertyReader.Property p in Props)
                switch (pcc.getNameEntry(p.Name))
                {

                    case "bCanStepUpOn":
                        if (p.raw[p.raw.Length - 1] == 1)
                            bCanStepUpOn = true;
                        break;
                    case "Tag":
                        Tag = p.Value.IntValue;
                        break;
                    case "CreationTime":
                        CreationTime = BitConverter.ToSingle(p.raw, p.raw.Length - 4);
                        break;
                }
            ReadObjects();
            ReadMatrices();
        }
开发者ID:CreeperLava,项目名称:ME3Explorer,代码行数:26,代码来源:StaticMeshCollectionActor.cs


示例8: WwiseStream

 public WwiseStream(PCCObject Pcc, byte[] Raw)
 {
     pcc = Pcc;
     memory = Raw;
     memsize = memory.Length;
     Deserialize();
 }
开发者ID:CreeperLava,项目名称:ME3Explorer,代码行数:7,代码来源:WwiseStream.cs


示例9: BioAnimSetData

        public BioAnimSetData(PCCObject Pcc, int Index)
        {
            pcc = Pcc;
            MyIndex = Index;
            if (pcc.isExport(Index))
                data = pcc.Exports[Index].Data;
            Props = PropertyReader.getPropList(pcc, data);
            BitConverter.IsLittleEndian = true;
            TrackBoneNames = new List<string>();
            UseTranslationBoneNames = new List<string>();
            foreach (PropertyReader.Property p in Props)
                switch (pcc.getNameEntry(p.Name))
                {

                    case "bAnimRotationOnly":
                        if (p.raw[p.raw.Length - 1] == 1)
                            bAnimRotationOnly = true;
                        break;
                    case "TrackBoneNames":
                        ReadTBN(p.raw);
                        break;
                    case "UseTranslationBoneNames":
                        ReadUTBN(p.raw);
                        break;
                }
        }
开发者ID:CreeperLava,项目名称:ME3Explorer,代码行数:26,代码来源:BioAnimSetData.cs


示例10: DumpArray

 public string DumpArray(PCCObject pcc,byte [] raw, int pos, string s, int depth)
 {
     string res = "";
     List<PropertyReader.Property> p = PropertyReader.ReadProp(pcc, raw, pos);
     for (int i = 0; i < p.Count; i++)
     {
         if (p[i].TypeVal == PropertyReader.Type.StringRefProperty)
         {
             for (int j = 0; j < depth; j++)
                 res += "\t";
             res += i + " : " + PropertyReader.PropertyToText(p[i], pcc) + "\n";
         }
         if (p[i].TypeVal == PropertyReader.Type.ArrayProperty)
         {
             //for (int j = 0; j < depth; j++)
             //    res += "\t";
             //res += "in Property #" + i + " : " + PropertyReader.PropertyToText(p[i], pcc) + "\n";
             res += DumpArray(pcc, raw, p[i].offsetval + 4, res, depth + 1);
         }
         if (p[i].TypeVal == PropertyReader.Type.StructProperty)
         {
             //for (int j = 0; j < depth; j++)
             //    res += "\t";
             //res += "in Property #" + i + " : " + PropertyReader.PropertyToText(p[i], pcc) + "\n";
             res += DumpArray(pcc, raw, p[i].offsetval + 8, res, depth + 1);
         }
     }
     return res;
 }
开发者ID:Dybuk,项目名称:ME3Explorer,代码行数:29,代码来源:PropDumper.cs


示例11: AnimTree

        public AnimTree(PCCObject Pcc, int Index)
        {
            pcc = Pcc;
            MyIndex = Index;
            if (pcc.isExport(Index))
                data = pcc.Exports[Index].Data;
            Props = PropertyReader.getPropList(pcc, data);
            BitConverter.IsLittleEndian = true;
            AnimGroups = new List<AnimGroupEntry>();
            ComposePrePassBoneNames = new List<string>();
            SkelControlLists = new List<SkelControlListEntry>();
            Children = new List<ChildrenEntry>();
            BitConverter.IsLittleEndian = true;
            foreach (PropertyReader.Property p in Props)
                switch (pcc.getNameEntry(p.Name))
                {

                    case "NodeTotalWeight":
                        NodeTotalWeight = BitConverter.ToSingle(p.raw, p.raw.Length - 4);
                        break;
                    case "AnimGroups":
                        ReadAnimGroups(p.raw);
                        break;
                    case "ComposePrePassBoneNames":
                        ReadPrePassBoneNames(p.raw);
                        break;
                    case "SkelControlLists":
                        ReadSkelControlLists(p.raw);
                        break;
                    case "Children":
                        ReadChildren(p.raw);
                        break;
                }
        }
开发者ID:CreeperLava,项目名称:ME3Explorer,代码行数:34,代码来源:AnimTree.cs


示例12: AnimSet

        public AnimSet(PCCObject Pcc, int Index)
        {
            pcc = Pcc;
            MyIndex = Index;
            if (pcc.isExport(Index))
                data = pcc.Exports[Index].Data;
            Props = PropertyReader.getPropList(pcc, data);
            BitConverter.IsLittleEndian = true;
            Sequences = new List<int>();
            foreach (PropertyReader.Property p in Props)
                switch (pcc.getNameEntry(p.Name))
                {

                    case "PreviewSkelMeshName":
                        PreviewSkelMeshName = p.Value.IntValue;
                        break;
                    case "m_pBioAnimSetData":
                        m_pBioAnimSetData = p.Value.IntValue;
                        if (pcc.isExport(m_pBioAnimSetData - 1) && pcc.Exports[m_pBioAnimSetData - 1].ClassName == "BioAnimSetData")
                            SetData = new BioAnimSetData(pcc, m_pBioAnimSetData - 1);
                        break;
                    case "Sequences":
                        ReadSequences(p.raw);
                        break;
                }
        }
开发者ID:CreeperLava,项目名称:ME3Explorer,代码行数:26,代码来源:AnimSet.cs


示例13: MantleMarker

        public MantleMarker(PCCObject Pcc, int Index)
        {
            pcc = Pcc;
            MyIndex = Index;
            if (pcc.isExport(Index))
                data = pcc.Exports[Index].Data;
            Props = PropertyReader.getPropList(pcc, data);
            BitConverter.IsLittleEndian = true;
            foreach (PropertyReader.Property p in Props)
                switch (pcc.getNameEntry(p.Name))
                {
                    #region
                    case "bHasCrossLevelPaths":
                        if (p.raw[p.raw.Length - 1] == 1)
                            bHasCrossLevelPaths = true;
                        break;
                    case "Tag":
                        Tag = p.Value.IntValue;
                        break;
                    case "nextNavigationPoint":
                        nextNavigationPoint = p.Value.IntValue;
                        break;
                    case "CylinderComponent":
                        CylinderComponent = p.Value.IntValue;
                        break;
                    case "Owner":
                        Owner = p.Value.IntValue;
                        break;
                    case "Base":
                        Base = p.Value.IntValue;
                        break;
                    case "CollisionComponent":
                        CollisionComponent = p.Value.IntValue;
                        break;
                    case "CreationTime":
                        CreationTime = BitConverter.ToSingle(p.raw, p.raw.Length - 4);
                        break;
                    case "visitedWeight":
                        visitedWeight = p.Value.IntValue;
                        break;
                    case "bestPathWeight":
                        bestPathWeight = p.Value.IntValue;
                        break;
                    case "NetworkID":
                        NetworkID = p.Value.IntValue;
                        break;
                    case "ApproximateLineOfFire":
                        ApproximateLineOfFire = p.Value.IntValue;
                        break;
                    case "location":
                        location = new Vector3(BitConverter.ToSingle(p.raw, p.raw.Length - 12),
                                              BitConverter.ToSingle(p.raw, p.raw.Length - 8),
                                              BitConverter.ToSingle(p.raw, p.raw.Length - 4));
                        break;
#endregion
                }
            MyMatrix = Matrix.Translation(location);
            GenerateMesh();
        }
开发者ID:CreeperLava,项目名称:ME3Explorer,代码行数:59,代码来源:MantleMarker.cs


示例14: SAction

 public SAction(int idx, float x, float y, PCCObject p, GraphEditor grapheditor)
     : base(idx, x, y, p, grapheditor)
 {
     GetVarLinks();
     GetOutputLinks();
     originalX = x;
     originalY = y;
 }
开发者ID:Dybuk,项目名称:ME3Explorer,代码行数:8,代码来源:SequenceObjects.cs


示例15: LoadFile

 public void LoadFile(string path)
 {
     pcc = new PCCObject(path);
     Objects = new List<int>();
     for (int i = 0; i < pcc.Exports.Count; i++)
         if (pcc.Exports[i].ClassName == "Function")
             Objects.Add(i);
     RefreshLists();
 }
开发者ID:CreeperLava,项目名称:ME3Explorer,代码行数:9,代码来源:UECodeEditor.cs


示例16: LoadPCC

 public void LoadPCC(string fileName)
 {
     objects.Clear();
     pcc = new PCCObject(fileName);
     CurrentFile = fileName;
     for (int i = 0; i < pcc.Exports.Count; i++)
         if (pcc.Exports[i].ClassName == "InterpData")
             objects.Add(i);
     RefreshCombo();
 }
开发者ID:CreeperLava,项目名称:ME3Explorer,代码行数:10,代码来源:InterpEditor.cs


示例17: openPccToolStripMenuItem_Click

 private void openPccToolStripMenuItem_Click(object sender, EventArgs e)
 {
     OpenFileDialog d = new OpenFileDialog();
     d.Filter = "*.pcc|*.pcc";
     if (d.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         pcc = new PCCObject(d.FileName);
         ListRefresh();
     }
 }
开发者ID:CreeperLava,项目名称:ME3Explorer,代码行数:10,代码来源:CloneDialog2.cs


示例18: startScanToolStripMenuItem_Click

 private void startScanToolStripMenuItem_Click(object sender, EventArgs e)
 {
     string path = ME3Directory.cookedPath;
     string[] files = Directory.GetFiles(path, "*.pcc");
     pb1.Maximum = files.Length;
     DebugOutput.Clear();
     database = new List<DBEntry>();
     int count = 0;
     foreach (string file in files)
     {
         pb1.Value = count++;
         DebugOutput.PrintLn("Scanning file : " + Path.GetFileName(file) + " ...");
         PCCObject pcc = new PCCObject(file);
         DBEntry ent = new DBEntry();
         ent.filename = Path.GetFileName(file);
         ent.Objects = new List<ObjInf>();
         for (int i = 0; i < pcc.Exports.Count; i++)
         {
             PCCObject.ExportEntry ex = pcc.Exports[i];
             ObjInf obj;
             switch (ex.ClassName)
             {
                 case "StaticMesh":
                     obj = new ObjInf();
                     obj.Index = i;
                     obj.Type = 0;
                     obj.name = ex.ObjectName;
                     ent.Objects.Add(obj);
                     break;
                 case "SkeletalMesh":
                     obj = new ObjInf();
                     obj.Index = i;
                     obj.Type = 1;
                     obj.name = ex.ObjectName;
                     ent.Objects.Add(obj);
                     break;
             }
         }
         if (ent.Objects.Count != 0)
         {
             DebugOutput.PrintLn("Found " + ent.Objects.Count + " Objects:", false);
             //foreach (ObjInf o in ent.Objects)
             //    DebugOutput.PrintLn("\t" + o.Index + " : " + o.name + " (" + TypeToString(o.Type) + ")", false);
             //DebugOutput.Update();
             database.Add(ent);
         }
         else
         {
             DebugOutput.PrintLn("Nothing...", false);
         }
     }
     RefreshLists();
     pb1.Value = 0;
 }
开发者ID:CreeperLava,项目名称:ME3Explorer,代码行数:54,代码来源:MeshDatabase.cs


示例19: LoadPCC

 public void LoadPCC(string path)
 {
     MeshplorerMode = 0;
     CurrFile = path;
     pcc = new PCCObject(path);
     Materials = new List<int>();
     for (int i = 0; i < pcc.Exports.Count; i++)
         if (pcc.Exports[i].ClassName == "Material" || pcc.Exports[i].ClassName == "MaterialInstanceConstant")
             Materials.Add(i);
     RefreshList1();
 }
开发者ID:Dybuk,项目名称:ME3Explorer,代码行数:11,代码来源:Meshplorer.cs


示例20: autoDecompressPcc

 /*
  * This method is called when using the -decompresspcc command line argument
  */
 private int autoDecompressPcc(string sourceFile, string outputFile)
 {
     if (!File.Exists(sourceFile)){
         MessageBox.Show("PCC to decompress does not exist:\n" + sourceFile, "Auto Decompression Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
         return 1;
     }
     System.Console.WriteLine("Automating Pcc Decompressor: " + sourceFile + " => " + outputFile);
     PCCObject pccObj = new PCCObject(sourceFile);
     pccObj.saveToFile(outputFile,false);
     return 0;
 }
开发者ID:Dybuk,项目名称:ME3Explorer,代码行数:14,代码来源:PCCRepack.cs



注:本文中的ME3Explorer.Unreal.PCCObject类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Tools.ParentClass类代码示例发布时间:2022-05-26
下一篇:
C# MCSong.Player类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap