A
Rrrrrrrrrrrrrrrrr
Je vais chercher encore ...
Si vous n'avez rien à faire (on sait jamais hein )
Je vais chercher encore ...
Si vous n'avez rien à faire (on sait jamais hein )
Code:
Private _isInitialized As Boolean = False
Public subareaId As Integer = 0
Public mapId As Integer = 0
Public subareaAlignmentSide As Integer = 0
Public houses As New List(Of HouseInformations)
Public actors As New List(Of GameRolePlayActorInformations)
Public interactiveElements As New List(Of InteractiveElement)
Public statedElements As New List(Of StatedElement)
Public obstacles As New List(Of MapObstacle)
Public fights As New List(Of FightCommonInformations)
Public Const protocolId As UInteger = 226
Public Function deserializeAs_MapComplementaryInformationsDataMessage(ByVal param1 As Dofus.DofusReader)
Dim _loc_14 As UInteger = 0
Dim _loc_15 As HouseInformations = Nothing
Dim _loc_16 As UInteger = 0
Dim _loc_17 As GameRolePlayActorInformations = Nothing
Dim _loc_18 As InteractiveElement = Nothing
Dim _loc_19 As StatedElement = Nothing
Dim _loc_20 As MapObstacle = Nothing
Dim _loc_21 As FightCommonInformations = Nothing
Me.subareaId = param1.ReadShort()
If (Me.subareaId < 0) Then
Console.WriteLine("Forbidden value (" + Me.subareaId + ") on element of MapComplementaryInformationsDataMessage.subareaId.")
End If
Me.mapId = param1.ReadInt()
If (Me.mapId < 0) Then
Console.WriteLine("Forbidden value (" + Me.mapId + ") on element of MapComplementaryInformationsDataMessage.mapId.")
End If
Me.subareaAlignmentSide = param1.ReadByte()
Dim _loc_2 As UInteger = param1.ReadUnSignedshort()
Dim _loc_3 As Integer = 0
While (_loc_3 < _loc_2)
_loc_14 = param1.ReadUnSignedshort()
_loc_15 = ProtocolTypeManager.getInstance(_loc_14)
_loc_15.deserialize(param1)
Me.houses.add(_loc_15)
_loc_3 = _loc_3 + 1
End While
Dim _loc_4 As UInteger = param1.ReadUnSignedshort()
Dim _loc_5 As UInteger = 0
While (_loc_5 < _loc_4)
_loc_16 = param1.ReadUnSignedshort()
_loc_17 = ProtocolTypeManager.getInstance(_loc_16) 'Avant ici
_loc_17.deserialize(param1)
Me.actors.add(_loc_17)
_loc_5 = _loc_5 + 1
End While
Dim _loc_6 As UInteger = param1.ReadUnSignedshort()
Dim _loc_7 As Integer = 0
While (_loc_7 < _loc_6)
_loc_18 = New InteractiveElement()
_loc_18.deserialize(param1)
Me.interactiveElements.add(_loc_18)
_loc_7 = _loc_7 + 1
End While
Dim _loc_8 As UInteger = param1.ReadUnSignedshort()
Dim _loc_9 As Integer = 0
While (_loc_9 < _loc_8)
_loc_19 = New StatedElement()
_loc_19.deserialize(param1)
Me.statedElements.add(_loc_19)
_loc_9 = _loc_9 + 1
End While
Dim _loc_10 As UInteger = param1.ReadUnSignedshort()
Dim _loc_11 As UInteger = 0
While (_loc_11 < _loc_10)
_loc_20 = New MapObstacle()
_loc_20.deserialize(param1)
Me.obstacles.add(_loc_20)
_loc_11 = _loc_11 + 1
End While
Dim _loc_12 As UInteger = param1.ReadUnSignedshort()
Dim _loc_13 As Integer = 0
While (_loc_13 < _loc_12)
_loc_21 = New FightCommonInformations()
_loc_21.deserialize(param1)
Me.fights.add(_loc_21)
_loc_13 = _loc_13 + 1
End While
Return Me
End Function