Hi guys,
I've been working on an include for some custom data structures I need that other extensions/includes don't seem to solve. However, I've hit a roadblock, as I have two methodmaps that depend on each other, and I can't seem to find a way to prototype them as I would in any other language to make it work.
Here's a slimmed down example of what I'm trying to achieve:
PHP Code:
methodmap _Array {
public _Object Get_Object() { /* code here */ };
public bool Set_Object(_Object value) { /* code here */ };
}
methodmap _Object {
public _Array Get_Array() { /* code here */ };
public bool Set_Array(_Array value) { /* code here */ };
}
Obviously by default it won't work, but does prototyping exist for methodmaps in Pawn? I attempted putting this at the top of the include:
PHP Code:
methodmap _Object { }
methodmap _Array { }
So that they are visible to one another, but this just results in an error:
Code:
error 110: _Array has already been defined (previously seen as methodmap)
Any ideas?
Thanks!