Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
21 lines
644 B
VB.net
21 lines
644 B
VB.net
Imports System
|
|
Imports System.IO
|
|
Imports System.Drawing.Imaging
|
|
|
|
Public Class CMiniMap
|
|
' Fields
|
|
Private Const FileMask As String = "{0}\Texture\Widetexture\Zone{1}\{2}_{3}.dds"
|
|
Public Const TilesPainted As Integer = 11
|
|
|
|
' Methods
|
|
Public Shared Function CreateMap(ByVal GameFolder As String, ByVal Zone As Integer) As Bitmap
|
|
Try
|
|
If Zone = 16 Then Zone = 8
|
|
Return FischR.Wrapper.LoadMapDDS(String.Format(FileMask, GameFolder, Zone, "{0}", "{1}"))
|
|
Catch ex As Exception
|
|
MessageBox.Show(ex.ToString, ex.Message)
|
|
Return Nothing
|
|
End Try
|
|
End Function
|
|
End Class
|