Added WallModel (ModelID=20) which is a flat vertical surface on an offset (like a wall)

This commit is contained in:
JappaWakka 2022-01-29 00:06:58 +01:00
parent 7555a5e903
commit 54ea0e57ba
3 changed files with 24 additions and 0 deletions

View File

@ -30775,6 +30775,7 @@
<Compile Include="Resources\FontManager.vb" />
<Compile Include="Resources\GameModeManager.vb" />
<Compile Include="Resources\ModelManager.vb" />
<Compile Include="Resources\Models\2D\WallModel.vb" />
<Compile Include="Resources\Models\2D\BillModel.vb" />
<Compile Include="Resources\Models\2D\CrossModel.vb" />
<Compile Include="Resources\Models\2D\DoubleFloorModel.vb" />

View File

@ -0,0 +1,20 @@
Public Class WallModel
Inherits BaseModel
Public Sub New()
Me.ID = 20
Dim vertexData = New VertexPositionNormalTexture() {
New VertexPositionNormalTexture(New Vector3(-0.5, -0.5, 0.5), Vector3.Backward, New Vector2(0, 1)),
New VertexPositionNormalTexture(New Vector3(-0.5, 0.5, 0.5), Vector3.Backward, New Vector2(0, 0)),
New VertexPositionNormalTexture(New Vector3(0.5, 0.5, 0.5), Vector3.Backward, New Vector2(1, 0)),
New VertexPositionNormalTexture(New Vector3(0.5, 0.5, 0.5), Vector3.Backward, New Vector2(1, 0)),
New VertexPositionNormalTexture(New Vector3(0.5, -0.5, 0.5), Vector3.Backward, New Vector2(1, 1)),
New VertexPositionNormalTexture(New Vector3(-0.5, -0.5, 0.5), Vector3.Backward, New Vector2(0, 1))
}
Setup(vertexData)
End Sub
End Class

View File

@ -100,6 +100,7 @@
Public Shared DiagonalWallModel As DiagonalWallModel = New DiagonalWallModel()
Public Shared HalfDiagonalWallModel As HalfDiagonalWallModel = New HalfDiagonalWallModel()
Public Shared OutsideStepModel As OutsideStepModel = New OutsideStepModel()
Public Shared WallModel As WallModel = New WallModel()
Public Shared Function getModelbyID(ByVal ID As Integer) As BaseModel
Select Case ID
@ -143,6 +144,8 @@
Return HalfDiagonalWallModel
Case 19
Return OutsideStepModel
Case 20
Return WallModel
Case Else
Return BlockModel
End Select