public BuildingUI(BuildingCollectionUI ctx, IBuilding building, RectangleShape shape, Vector2f pos, MapTypes type) { Shape = shape ?? throw new ArgumentNullException(nameof(shape)); CtxBuildingCollectionUi = ctx; Pos = pos; BuildingCtx = building; Menu = new ContextualMenu(this); DrawMenuState = false; MapTypes = type; }
public ContextualMenuButton(ContextualMenu ctxContextualMenu, Vector2f menuPos) { CtxContextualMenu = ctxContextualMenu; MenuPos = menuPos; ButtonRectShapeList = ButtonBuildingType(); }