SRL Archive - OSR Help

Large arrays


Troll

2011-11-10 11:38:08

So i want to make a type which i can do, but then i want to kind of turn it into a graph kinda (its how im thinking of it in my mind). So if i call this type "Room" would i do?

var
graph :Array of Array Of Room
and could i use it like, graph[3][4].stuff

I have no idea if this would work and i cant try it at the moment as im still at school and just about to head home but would this work? Or how would i do it?

Thanks as always
The UnTroll like Troll

Shuttleu

2011-11-10 12:05:57

correct, thats right

~shut

Troll

2011-11-10 12:25:32

Thanks :) I was'nt sure if i was right or not and i wanted to know how to fix it if it was wrong before i got home :p

Nava2

2011-11-10 14:31:45

For typo correcting code (and to make it passable into Plugins), you should probably define: TRoomArray, T2DRoomArray, etc.

Just as you need them. Also looks nicer than doing "array of array" everywhere. :)