HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help with this struct error please. Code provided.

09-22-2010, 07:24 PM#1
syrathia
I encountered an error that i cannot resolve while writing up a system to handle neutral camps in a map i am working on.

I have a struct that contains 2 lists and a pool. In the create method of the Camp struct I initialize the two lists and pool. The pathing list and intpool both throw no error but the building list does.

The Camp and BuildingList libraries follow the error.



Expand Message: Line 7991: BuildingList is not of a type that allows . syntax:


Expand Camp library:

Expand BuildingList library:


Any help would be appreciated.

As a side note all of the various libraries are imported in file that is a list of imports which is then singly imported into the map.
09-22-2010, 07:55 PM#2
Anitarf
In Zinc, all library members are private by default. You should make the BuildingList struct public.
09-22-2010, 08:20 PM#3
syrathia
Oh yeah! Thanks. Must re read the zinc doc.