예제 #1
0
        public static Entity CreateSubtitle(SubtitleText stComp)
        {
            var e = TTFactory.CreateDrawlet();

            e.AddComponent(stComp);
            e.Refresh();
            return(e);
        }
예제 #2
0
        public static Entity CreateLevelet(Level lev)
        {
            var e = TTFactory.CreateDrawlet();

            e.AddComponent(new ScaleComp());
            e.AddComponent(new ThingComp(ThingType.OTHER, null, lev.Background.Texture));
            e.AddComponent(new ScriptComp());
            e.AddComponent(lev.Background);
            e.Refresh();
            return(e);
        }