sourcepawn
sourcepawn copied to clipboard
Add static property support for methodmaps.
Add static property support for methodmaps;
Example:
int g_val;
methodmap Test
{
property static int TestVal
{
public get() { return g_val; }
public set(int v) { g_val = v; }
}
}
... //Later in code
Test.TestVal = 1;
I would also love to see this. My usecase is alliedmodders/sourcemod#1875
I can't really think of a good reason to say "no" to this. I'm guessing enum structs should have it too.