mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-28 16:24:45 +02:00
Removed unused methods in helper classes
This commit is contained in:
parent
3b3f2a8b8b
commit
8e7250bb03
@ -12,16 +12,6 @@ Public MustInherit Class BasicObject
|
|||||||
Private _Visible As Boolean = True
|
Private _Visible As Boolean = True
|
||||||
Private _DisposeReady As Boolean = False
|
Private _DisposeReady As Boolean = False
|
||||||
|
|
||||||
''' <summary>
|
|
||||||
''' Use the random-function to create randomized values.
|
|
||||||
''' </summary>
|
|
||||||
Public Random As New System.Random()
|
|
||||||
|
|
||||||
''' <summary>
|
|
||||||
''' You can store a value in the Tag.
|
|
||||||
''' </summary>
|
|
||||||
Public Tag As New Object
|
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "Properties"
|
#Region "Properties"
|
||||||
@ -98,20 +88,6 @@ Public MustInherit Class BasicObject
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
''' <summary>
|
|
||||||
''' Returns a rectangle created by position, width and height of this object.
|
|
||||||
''' </summary>
|
|
||||||
Public Property Rectangle As Rectangle
|
|
||||||
Get
|
|
||||||
Return New Rectangle(CInt(Position.X), CInt(Position.Y), Width, Height)
|
|
||||||
End Get
|
|
||||||
Set(value As Rectangle)
|
|
||||||
Me.Position = New Vector2(value.X, value.Y)
|
|
||||||
Me.Width = value.Width
|
|
||||||
Me.Height = value.Height
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
''' <summary>
|
''' <summary>
|
||||||
''' The size of this object (width and height)
|
''' The size of this object (width and height)
|
||||||
''' </summary>
|
''' </summary>
|
||||||
@ -141,12 +117,4 @@ Public MustInherit Class BasicObject
|
|||||||
Me._Position = Position
|
Me._Position = Position
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
''' <summary>
|
|
||||||
''' Makes the object invisible and ready for disposing.
|
|
||||||
''' </summary>
|
|
||||||
Public Sub Remove()
|
|
||||||
DisposeReady = True
|
|
||||||
Visible = False
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
End Class
|
End Class
|
@ -26,9 +26,4 @@
|
|||||||
Me._Height = Height
|
Me._Height = Height
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Sub Input(ByVal Width As Integer, ByVal Height As Integer)
|
|
||||||
Me._Width = Width
|
|
||||||
Me._Height = Height
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
End Class
|
End Class
|
Loading…
x
Reference in New Issue
Block a user