mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-24 04:41:53 +00:00
980c986305
- added new VARF_Transient flag so that the decision whether to serialize a field does not depend solely on its native status. It may actually make a lot of sense to use the auto-serializer for native fields, too, as this would eliminate a lot of maintenance code. - defined (u)int8/16 as aliases to the byte and short types (Can't we not just get rid of this naming convention already...?) - exporting the fields of Actor revealed a few name clashes between them and some global types, so Actor.Sector was renamed to CurSector and Actor.Inventory was renamed to Actor.Inv.
54 lines
1.1 KiB
Text
54 lines
1.1 KiB
Text
class Object native
|
|
{
|
|
// These really should be global functions...
|
|
native static int G_SkillPropertyInt(int p);
|
|
native static double G_SkillPropertyFloat(int p);
|
|
|
|
virtual native void Destroy();
|
|
native class<Object> GetClass();
|
|
}
|
|
|
|
class Thinker : Object native
|
|
{
|
|
virtual native void Tick();
|
|
virtual native void PostBeginPlay();
|
|
}
|
|
|
|
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 ActorIterator : Object native
|
|
{
|
|
native static ActorIterator Create(int tid, class<Actor> type = "Actor");
|
|
native Actor Next();
|
|
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;
|
|
*/
|
|
}
|
|
|
|
class SpotState : Object native
|
|
{
|
|
native static SpotState GetSpotState();
|
|
native SpecialSpot GetNextInList(class<Actor> type, int skipcounter);
|
|
}
|
|
|
|
struct Sector native
|
|
{
|
|
}
|