public DrawObject CreateDrawObject(CoreClasses.StaticObject parent, string assetName) { // Check: assetName valid foramt. // Check: Static / animated. // Check: assetName exists. // Check settings: sprite /3d. //everything else DrawObject obj = new DrawObject(parent); //Temporary! return(obj); }
protected readonly CoreClasses.StaticObject parent; //needed to figure out position etc. public DrawObject(CoreClasses.StaticObject parent) { //CoreClasses.GameWorld.Add(this); }
private Texture2D sprite; //TODO Add support for sprithsheet stuff --> multiple sprites from single file... //parameters public SpriteDrawObject(CoreClasses.StaticObject parent, Texture2D sprite /*parameters*/) : base(parent) { this.sprite = sprite; //this.parameters = parameters; }