public SWFrameModel(GObject ov, Skinner map, Style style) { obj = ov; box = new Rectangle((int)obj.X, (int)obj.Y, obj.Width, obj.Height); models = new List<SWFrameModel>(); texture = map.getTexture(style, ov); //Add Gobjects inside if owns other elements if (ov.isOwner() == true) { List<GObject> p = new List<GObject>(); p = obj.getAllObjectsOwned(p); //Create models for all foreach (GObject g in p) { models.Add(new SWFrameModel(g, map, style)); } } }