public SpaceshipSegment(TType _type, TDirection _mainDirection, TSocket _socketUp, TSocket _socketRight, TSocket _socketDown, TSocket _socketLeft, int _capacity = 0, int _current = 0, bool _isMain = false) { Type = _type; MainDirection = _mainDirection; SocketUp = _socketUp; SocketRight = _socketRight; SocketDown = _socketDown; SocketLeft = _socketLeft; Capacity = _capacity; Current = _current; IsActive = false; IsMain = _isMain; String id = Type + MainDirection.ToString("D") + SocketUp.ToString("D") + SocketRight.ToString("D") + SocketDown.ToString("D") + SocketLeft.ToString("D") + Capacity + Convert.ToInt32(IsMain); Image = (System.Drawing.Bitmap)Properties.Resources.ResourceManager.GetObject(id); }