public static Entity CreateSubtitle(SubtitleText stComp) { var e = TTFactory.CreateDrawlet(); e.AddComponent(stComp); e.Refresh(); return(e); }
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); }