[RESOLVED] Question about lists
Hello everyone,
I've run into a problem while working on my simple game mapmaker.
I'm using a list to store my monsters like this:
Code:
Public stMobList As New List(Of static_monster)
Public Structure static_monster
Dim name As String
Dim placement As Coordinate
Dim kind As Integer
End Structure
Public Structure Coordinate
Dim x As Integer
Dim y As Integer
End Structure
So the problem which I came up with is, that I can't change the stored information within the list like:
Code:
stMobList.Item(1).name.ToString = "Hi"
I've also tried the replace function.
Code:
stMobList.Item(1).name.ToString.Replace(stMobList.Item(1).name, "newname")
Which didn't work either with how I tried to use it.
So my question is how can I do this and make it work?
Already thanks,
Jurre