mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-07 10:28:34 +00:00
16 lines
238 B
SourcePawn
16 lines
238 B
SourcePawn
native Handle:CreateHandle(count);
|
|
native CloseHandle(Handle:handle);
|
|
|
|
methodmap Handle {
|
|
public Handle() = CreateHandle;
|
|
public ~Handle() = CloseHandle;
|
|
};
|
|
|
|
methodmap Crab < Handle {
|
|
};
|
|
|
|
public main() {
|
|
new Crab:crab;
|
|
delete crab;
|
|
}
|