P3D-Legacy/P3D/World/ActionScript/V2/ScriptConstructs/DoRival.vb

25 lines
909 B
VB.net

Namespace ScriptVersion2
Partial Class ScriptComparer
' --------------------------------------------------------------------------------------------------------------------------
' Contains the <rival> constructs.
' --------------------------------------------------------------------------------------------------------------------------
Private Shared Function DoRival(ByVal subClass As String) As Object
Dim command As String = GetSubClassArgumentPair(subClass).Command
Dim argument As String = GetSubClassArgumentPair(subClass).Argument
Select Case command.ToLower()
Case "name"
Return Core.Player.RivalName
Case "skin"
Return Core.Player.RivalSkin
End Select
Return DEFAULTNULL
End Function
End Class
End Namespace