示例#1
0
        private static void PostProcessTGSC(Room room, List<MapEntityLoader.RawMapEntity> rawEntityData)
        {
            foreach (var tgscEntity in FindAllByType("TGSC", rawEntityData))
            {
                ScaleableObject tgsc = new ScaleableObject();
                tgsc.Name = tgscEntity.Fields.GetProperty<string>("Name");
                tgsc.Fields = tgscEntity.Fields;
                tgsc.FourCC = "TGSC";

                ProcessTransform(tgsc);
                tgsc.Fields.RemoveProperty("Name");

                room.Entities.Add(tgsc);
            }
        }
示例#2
0
        private static void PostProcessScaleableObjects(Scene scene, List<MapEntityLoader.RawMapEntity> rawEntityData)
        {
            foreach(var scobEntity in FindAllByType("SCOB", rawEntityData))
            {
                ScaleableObject scob = new ScaleableObject();
                scob.Name = scobEntity.Fields.GetProperty<string>("Name");
                scob.Fields = scobEntity.Fields;
                scob.FourCC = "SCOB";

                ProcessTransform(scob);
                scob.Fields.RemoveProperty("Name");

                scene.Entities.Add(scob);
            }
        }