PageRenderTime 25ms CodeModel.GetById 15ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/NfoLibrary/Actor/ActorList.vb

#
Visual Basic | 31 lines | 20 code | 11 blank | 0 comment | 0 complexity | ad2390b49c65d35f39cf76a4c61881d2 MD5 | raw file
 1Imports ProtoXML
 2
 3
 4Public Class ActorList
 5    Inherits ProtoFlatList(Of Actor)
 6
 7    Private Sub New()
 8        MyBase.New(Nothing, Nothing)
 9        Throw New NotImplementedException()
10    End Sub
11
12    Public Sub New(ByRef Parent As IProtoXBase, ByVal NodeName As String)
13        MyBase.New(Parent, NodeName)
14    End Sub
15
16
17    Public Overrides Sub ProcessNode(ByRef Element As System.Xml.Linq.XElement)
18
19        Dim NewActor As New Actor()
20        NewActor.ParentClass = Me
21        NewActor.ProcessNode(Element)
22
23        Me.Add(NewActor)
24
25    End Sub
26
27    Public Overrides Function CreateNew() As ProtoXML.IProtoXChild
28        Return New ActorList
29    End Function
30
31End Class