2022-01-23 10:58:54 +00:00
|
|
|
|
|
|
|
class CoreActor native
|
|
|
|
{
|
2022-01-23 18:03:14 +00:00
|
|
|
//native readonly sectortype sectp;
|
|
|
|
|
|
|
|
native int16 cstat;
|
2022-02-13 10:38:21 +00:00
|
|
|
//native int16 picnum; // access is disabled to allow later refactoring.
|
2022-01-23 18:03:14 +00:00
|
|
|
native readonly int16 statnum;
|
|
|
|
native int16 ang;
|
|
|
|
native int16 xvel;
|
|
|
|
native int16 yvel;
|
|
|
|
native int16 zvel, inittype; // inittype, type and flags are for Blood.
|
|
|
|
native int16 lotag, type;
|
|
|
|
native int16 hitag, flags;
|
|
|
|
native int16 extra;
|
|
|
|
native int16 detail;
|
|
|
|
|
|
|
|
native int8 shade;
|
|
|
|
native uint8 pal;
|
|
|
|
native uint8 clipdist;
|
|
|
|
native uint8 blend;
|
|
|
|
native uint8 xrepeat;
|
|
|
|
native uint8 yrepeat;
|
|
|
|
native int8 xoffset;
|
|
|
|
native int8 yoffset;
|
|
|
|
native int16 owner;
|
|
|
|
native uint16 cstat2;
|
|
|
|
|
|
|
|
native uint mdanimtims;
|
|
|
|
native int16 mdanimcur;
|
|
|
|
native int16 angoff, pitch, roll;
|
2022-02-13 08:32:17 +00:00
|
|
|
//native vec3 pivot_offset, position_offset; // no access needed - these are display only.
|
2022-01-23 18:03:14 +00:00
|
|
|
native uint8 renderflags;
|
|
|
|
native float alpha;
|
|
|
|
|
2022-02-20 23:12:51 +00:00
|
|
|
native readonly sectortype sector;
|
2022-02-13 10:38:21 +00:00
|
|
|
native readonly int16 spritesetpic;
|
2022-01-23 18:03:14 +00:00
|
|
|
native readonly int spawnindex;
|
2022-02-13 08:32:17 +00:00
|
|
|
|
|
|
|
// note that the pos vector is not directly accessible here.
|
|
|
|
// Its mixed fixed point format should be hidden from scripting, plus we need to wrap the setters to ensure proper sector linking anyway.
|
|
|
|
native Vector3 pos();
|
2022-02-20 23:12:51 +00:00
|
|
|
native Vector2 xy();
|
|
|
|
native double z();
|
2022-02-13 08:32:17 +00:00
|
|
|
native void setpos(Vector3 newpos, bool relink = true);
|
2022-02-20 23:12:51 +00:00
|
|
|
native void copypos(CoreActor newpos, bool relink = true);
|
2022-02-13 08:32:17 +00:00
|
|
|
native void move(Vector3 newpos, bool relink = true);
|
|
|
|
native void setz(double newz);
|
|
|
|
native void addz(double amount);
|
2022-02-13 09:44:39 +00:00
|
|
|
native void setSpritePic(int index); // index into actor's spriteset.
|
2022-02-20 23:12:51 +00:00
|
|
|
native void backuppos();
|
2022-01-23 18:03:14 +00:00
|
|
|
}
|
|
|
|
|