Is it possible to do static properties in methodmaps?
Eg:
Code:
static int s_CollectionSize = 0;
methodmap BaseCollection
{
public BaseCollection()
{
return view_as<BaseCollection>(0);
}
static property int Size
{
public get()
{
return s_CollectionSize;
}
public set(int value)
{
s_CollectionSize = value;
}
}
}
I wish to be able to do the below without having to make an methodmap instance.
Code:
BaseCollection.Size = 666;
PrintToServer("BaseCollection.Size=%d", BaseCollection.Size);
__________________