コード例 #1
0
        public void ReadObjects()
        {
            int entry = -1;

            for (int i = 0; i < Props.Count; i++)
            {
                if (pcc.getNameEntry(Props[i].Name) == "StaticMeshComponents")
                {
                    entry = i;
                }
            }
            if (entry == -1)
            {
                return;
            }
            int count = BitConverter.ToInt32(Props[entry].raw, 24);

            DebugOutput.PrintLn("#" + MyIndex + " StaticMeshCollectionActor : reading " + count + " objects...");
            Entries = new List <int>();
            for (int i = 0; i < count; i++)
            {
                Entries.Add(BitConverter.ToInt32(Props[entry].raw, i * 4 + 28) - 1);
            }
            STMC = new List <StaticMeshComponent>();
            foreach (int idx in Entries)
            {
                if (pcc.isExport(idx) && pcc.Exports[idx].ClassName == "StaticMeshComponent")
                {
                    STMC.Add(new StaticMeshComponent(pcc, idx));
                }
                else
                {
                    STMC.Add(null);
                }
                DebugOutput.Print(".", false);
            }
            DebugOutput.PrintLn("");
        }
コード例 #2
0
 public void DebugPrint(string s)
 {
     DebugOutput.Print(s);
 }