public EntityBar(PosUtil posUtil, EntityBarStyle style, Vector2 offset = default(Vector2)) { this.posUtil = posUtil; this.style = style; this.offset = offset; this.size = new Vector2(posUtil.tileWidth - 2, 5); }
public void addHpBar(PosUtil posUtil, EntityBarStyle style) { this.bar = new HpBar(posUtil, style); this.bar.Entity = this.Entity; this.bar.OnAddedToEntity(); }
public HpBar(PosUtil posUtil, EntityBarStyle style, Vector2 offset = default(Vector2)) : base(posUtil, style, offset) { }