Ejemplo n.º 1
0
        private static void PostProcessTGOB(Room room, List<MapEntityLoader.RawMapEntity> rawEntityData)
        {
            foreach (var tgobEntity in FindAllByType("TGOB", rawEntityData))
            {
                Actor tgob = new Actor();
                tgob.Name = tgobEntity.Fields.GetProperty<string>("Name");
                tgob.Fields = tgobEntity.Fields;
                tgob.FourCC = "TGOB";

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

                room.Entities.Add(tgob);
            }
        }
Ejemplo n.º 2
0
        private static void PostProcessActors(Scene scene, List<MapEntityLoader.RawMapEntity> rawEntityData)
        {
            foreach (var actorEntity in FindAllByType("ACTR", rawEntityData))
            {
                Actor actor = new Actor();
                actor.Name = actorEntity.Fields.GetProperty<string>("Name");
                actor.Fields = actorEntity.Fields;
                actor.FourCC = "ACTR";

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

                scene.Entities.Add(actor);
            }
        }