Exemplo n.º 1
0
        public static Entity CreateSubtitle(SubtitleText stComp)
        {
            var e = TTFactory.CreateDrawlet();

            e.AddComponent(stComp);
            e.Refresh();
            return(e);
        }
Exemplo n.º 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);
        }