Mark appropriate voidptr fields as readonly

This commit is contained in:
Boondorl 2025-07-27 01:52:09 -04:00 committed by Rachael Alexanderson
commit 12fac42bab
3 changed files with 7 additions and 7 deletions

View file

@ -63,8 +63,8 @@ struct FLineTraceData
struct LinkContext
{
voidptr sector_list; // really msecnode but that's not exported yet.
voidptr render_list;
readonly voidptr sector_list; // really msecnode but that's not exported yet.
readonly voidptr render_list;
}
class ViewPosition native
@ -265,7 +265,7 @@ class Actor : Thinker native
native readonly State SeeState;
native State MeleeState;
native State MissileState;
native voidptr /*DecalBase*/ DecalGenerator;
native readonly internal voidptr /*DecalBase*/ DecalGenerator;
native uint8 fountaincolor;
native double CameraHeight; // Height of camera when used as such
native double CameraFOV;

View file

@ -263,7 +263,7 @@ struct MusPlayingInfo native
native String name;
native int baseorder;
native bool loop;
native voidptr handle;
native readonly voidptr handle;
};
@ -987,7 +987,7 @@ struct QuatStruct native unsafe(internal)
struct ScriptSavedPos
{
voidptr SavedScriptPtr;
readonly voidptr SavedScriptPtr;
int SavedScriptLine;
}

View file

@ -35,7 +35,7 @@
class MessageBoxMenu : Menu
{
BrokenLines mMessage;
voidptr Handler;
readonly internal voidptr Handler;
int mMessageMode;
int messageSelection;
int mMouseLeft, mMouseRight, mMouseY;
@ -45,7 +45,7 @@ class MessageBoxMenu : Menu
int destWidth, destHeight;
String selector;
native static void CallHandler(voidptr hnd);
private native static void CallHandler(voidptr hnd);
//=============================================================================