gzdoom/wadsrc/static/zscript/base.txt
Christoph Oelckers 72e77a6c65 - implemented handling for virtual function.
Syntax-wise I chose to make it as strict as possible to reduce the chance of errors: Virtual base functions must be declared with the 'virtual' keyword, and overrides in child classes with the 'override' keyword. This way any mismatch in parameters that otherwise would cause silent failure will outright produce a compile error.
2016-11-11 20:05:07 +01:00

32 lines
588 B
Text

class Object native
{
virtual native void Destroy();
native class<Object> GetClass();
}
class Thinker : Object native
{
}
class ThinkerIterator : Object native
{
enum EStatnums
{
MAX_STATNUM = 127
}
native static ThinkerIterator Create(class<Object> type = "Actor", int statnum=MAX_STATNUM+1);
native Thinker Next(bool exact = false);
native void Reinit();
}
class DropItem : Object native
{
/* native fields listed for reference only for now
native readonly DropItem Next;
native readonly name Name;
native readonly int Probability;
native readonly int Amount;
*/
}