i make a methodmap like this
PHP Code:
methodmap Tank
{
public Tank(int tank)
{
return view_as<Tank>(tank);
}
public native SetType(int type);
property int Type
{
public native get()
public native set(int type)
}
}
PHP Code:
// this is in sp
public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max)
{
CreateNative("Tank.SetType", Native_Tank_SetType);
// CreateNative("Tank.GetType", Native_Tank_GetType);
return APLRes_Success;
}
any Native_Tank_SetType(Handle plugin, int numParams)
{
}
so how can we use CreateNative() for property
like CreateNative("Tank.Type", Native_Tank_Type)?
but one property has two native, so the "Native_Tank_Type" maybe has some problem?
or someone can explain it.