I am used in vba to use defined variables a lot, it looks like this:
Type Data_Player ' Create user-defined type.
Ref As Integer ' Define elements of data type.
Name As String
Color As String
Dim Player_0 As Data_Player ' Declare variable.
Player_0.ID = 0 ' Assign a value to an element.
This is particularly useful for defining parameters to be sent to the different instances of an object, I suppose that this involves the creation of a node but that it is the best practice ?
Thank a lot for your help and happy new year !