diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-06-05 12:12:39 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-06-05 12:12:39 -0300 |
| commit | f080f1e4bc9475500c0b5ef3c559c0e105290137 (patch) | |
| tree | 461f6a7fef0014900f5f36423a92bde964a4ae94 /src/script.hh | |
| parent | ebfa80ab573b1a0ef9aec65a45fd0ae751196207 (diff) | |
| download | game-f080f1e4bc9475500c0b5ef3c559c0e105290137.tar.gz game-f080f1e4bc9475500c0b5ef3c559c0e105290137.zip | |
reduce clutter with struct dividing comments
Diffstat (limited to 'src/script.hh')
| -rw-r--r-- | src/script.hh | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/src/script.hh b/src/script.hh index 0361190..f6b3354 100644 --- a/src/script.hh +++ b/src/script.hh @@ -7,8 +7,6 @@ #define MAX_IDENT_LENGTH 30 struct TReadScriptFile { - // REGULAR FUNCTIONS - // ========================================================================= TReadScriptFile(void); ~TReadScriptFile(void); void open(const char *FileName); @@ -66,7 +64,7 @@ struct TReadScriptFile { } // DATA - // ========================================================================= + // ================= TOKEN Token; FILE *File[3]; char Filename[3][4096]; @@ -82,8 +80,6 @@ struct TReadScriptFile { }; struct TWriteScriptFile { - // REGULAR FUNCTIONS - // ========================================================================= TWriteScriptFile(void); ~TWriteScriptFile(void); void open(const char *FileName); @@ -97,15 +93,13 @@ struct TWriteScriptFile { void writeBytesequence(const uint8 *Sequence, int Length); // DATA - // ========================================================================= + // ================= FILE *File; char Filename[4096]; int Line; }; struct TReadBinaryFile: TReadStream { - // REGULAR FUNCTIONS - // ========================================================================= TReadBinaryFile(void); void open(const char *FileName); void close(void); @@ -115,7 +109,7 @@ struct TReadBinaryFile: TReadStream { void seek(int Offset); // VIRTUAL FUNCTIONS - // ========================================================================= + // ================= uint8 readByte(void) override; void readBytes(uint8 *Buffer, int Count) override; bool eof(void) override; @@ -128,22 +122,20 @@ struct TReadBinaryFile: TReadStream { // Duplicate destructor that also calls operator delete. // VTABLE[9] // DATA - // ========================================================================= + // ================= FILE *File; char Filename[4096]; int FileSize; }; struct TWriteBinaryFile: TWriteStream { - // REGULAR FUNCTIONS - // ========================================================================= TWriteBinaryFile(void); void open(const char *FileName); void close(void); void error(const char *Text); // VIRTUAL FUNCTIONS - // ========================================================================= + // ================= void writeByte(uint8 Byte) override; void writeBytes(const uint8 *Buffer, int Count) override; @@ -153,7 +145,7 @@ struct TWriteBinaryFile: TWriteStream { virtual ~TWriteBinaryFile(void); // DATA - // ========================================================================= + // ================= FILE *File; char Filename[4096]; }; |
