Is there a way to declare a type or struct in director like you can in Visual Basic and C++. Like instead of a variable being a string or a integer, its a rabbit? Like in VB I can do something like this;
Public Type Rabbit()
weight as integer
speed as integer
name as string
coat as string
End Type
Right now I have to use property lists in Director so i have somethign messy like this:
animals = [#rabbit1:[#wieght:10, #speed:5], #rabbit2:[#wieght:12, #speed:4]
I kinda want to be able to create imaginary lists so like i can declare a variable as a list, without telling it whats in the list. ex:
rabbit1 = newRabbit
and rabbit1 will automatically have all the rabbit object's properties in it. If theres a way to do this in director, I will have even more respect for it than I already do.
Public Type Rabbit()
weight as integer
speed as integer
name as string
coat as string
End Type
Right now I have to use property lists in Director so i have somethign messy like this:
animals = [#rabbit1:[#wieght:10, #speed:5], #rabbit2:[#wieght:12, #speed:4]
I kinda want to be able to create imaginary lists so like i can declare a variable as a list, without telling it whats in the list. ex:
rabbit1 = newRabbit
and rabbit1 will automatically have all the rabbit object's properties in it. If theres a way to do this in director, I will have even more respect for it than I already do.