public EntityViews.AEntityView GetView() { if (m_View == null) { m_View = CreateView(); } return(m_View); }
/// <summary> /// Draws all overheads, starting at [yOffset] pixels above the Entity's anchor point on the ground. /// </summary> /// <param name="yOffset"></param> public void DrawOverheads(SpriteBatch3D spriteBatch, Vector3 drawPosition, MouseOverList mouseOverList, Map map, int yOffset) { for (int i = 0; i < Entity.Overheads.Count; i++) { AEntityView view = Entity.Overheads[i].GetView(); view.DrawArea = new Rectangle((view.DrawTexture.Width / 2) - 22, yOffset + view.DrawTexture.Height, view.DrawTexture.Width, view.DrawTexture.Height); OverheadRenderer.AddView(view, drawPosition); yOffset += view.DrawTexture.Height; } }
public DeferredView(Vector3 drawPosition, AEntityView baseView) : base(baseView.Entity) { m_DrawPosition = drawPosition; m_BaseView = baseView; }