Complex objects and collections

Get help using Construct 2

Post » Mon Jun 10, 2013 6:07 am

As a programmer, I'm used to things in C# like generics, etc.

I can build an object that is a collection of complex objects.

Example

List<People>()
{
ID=Int
Name = String;
Age=Int;
List<Chats>
{
ChatID=Int;
ChatText=String;
}
}


From here I can populate it on start, and then access pretty quick.

Get me person 12123412334 and a chat with id 2312213. I can add as many chats as I want to a particular person.


How do you implement something like this in C2? I would assume it would require Functions, Arrays and Dictionaries.


Mind you I don't know what the equiv of this is in JS, Python, Ruby or Java or in C++ for that matter.firebelly2013-06-10 06:09:50
B
30
S
10
G
7
Posts: 416
Reputation: 7,239

Return to How do I....?

Who is online

Users browsing this forum: oosyrag, pcprice76 and 13 guests