public SpriteBaseRef Attach(SpriteBox.Name name) { SpriteBaseRef pNode = (SpriteBaseRef)this.BaseAdd(); Debug.Assert(pNode != null); // Initialize SpriteBase Node pNode.Set(name); return(pNode); }
public static SpriteBox Find(SpriteBox.Name name) { SpriteBoxManager pMan = SpriteBoxManager.PrivGetInstance(); Debug.Assert(pMan != null); // Use compare node to compare to search nodes pMan.pSpriteBoxCompare.SetName(name); SpriteBox pData = (SpriteBox)pMan.BaseFind(pMan.pSpriteBoxCompare); return(pData); }
public static SpriteBox Add(SpriteBox.Name name, float x, float y, float width, float height, Azul.Color color) { SpriteBoxManager pMan = SpriteBoxManager.PrivGetInstance(); Debug.Assert(pMan != null); SpriteBox pSpriteBox = (SpriteBox)pMan.BaseAdd(); Debug.Assert(pSpriteBox != null); // Initialize the date pSpriteBox.Set(name, x, y, width, height, color); return(pSpriteBox); }
public void Set(SpriteBox.Name name) { this.pSpriteBase = SpriteBoxManager.Find(name); Debug.Assert(this.pSpriteBase != null); }
public SpriteBaseRef Attach(SpriteBox.Name name) { SpriteBaseRef pNode = this.pSBRefManager.Attach(name); return(pNode); }