I have question again... Here is my methodmap
Code:
methodmap ZombieClass {
// Constructor
public native ZombieClass(char[] name, char[] desc, char[] model, int health, float damage, float speed, float gravity, bool excluded = false);
// Methods
property int ID {
public native get();
}
property int Health {
public native get();
public native set(const int val);
}
property float Speed {
public native get();
public native set(const float val);
}
property float Gravity {
public native get();
public native set(const float val);
}
property float Damage {
public native get();
public native set(const float val);
}
property bool Excluded {
public native get();
public native set(const bool val);
}
// Zombie class related
public native void GetName(char[] text, int size);
public native void SetName(char[] text, int size);
public native void GetDesc(char[] text, int size);
public native void SetDesc(char[] text, int size);
public native void GetModel(char[] text, int size);
public native void SetModel(char[] text, int size);
}
And there are properties with float, but natives doesn't allow to return float, what I should do to keep it as property?
__________________