Make some of the class names in BaseBuffer more accurate.

This commit is contained in:
2026-02-22 19:46:26 -05:00
parent 861f9b27dc
commit bd2f927d6f
5 changed files with 23 additions and 23 deletions

View File

@@ -124,7 +124,7 @@
#include <cassert>
#include <ostream>
struct AnimValue : public LuaValueHolderValue {
struct AnimValue : public LuaValue {
bool persistent;
AnimValue() { persistent = false; }

View File

@@ -226,7 +226,7 @@ enum DrvAction {
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
class PlayLogfile : public BaseWriter<PlayLogfile>, public std::ofstream {
class PlayLogfile : public BaseWriteMethods<PlayLogfile>, public std::ofstream {
using std::ofstream::ofstream;
public:
void write_bytes(const char *n, size_t size) { write(n, size); }
@@ -244,7 +244,7 @@ public:
}
};
class ReplayLogfile : public BaseReader<ReplayLogfile>, public std::ifstream {
class ReplayLogfile : public BaseReadMethods<ReplayLogfile>, public std::ifstream {
using std::ifstream::ifstream;
public:
using read_string_type = std::string;

View File

@@ -243,7 +243,7 @@ public:
virtual char const *what() const { return "Stream Corruption"; }
};
using LuaValueHolderValue = LuaValueHolder<eng::string>;
using LuaValue = BaseLuaValue<eng::string>;
class StreamBufferCore {
protected:

View File

@@ -8,8 +8,8 @@
#include <iostream>
// Read a LuaValueHolder value from the streambuffer and push
// it onto the lua stack.
// Read a serialized LuaValue value from the
// streambuffer and push it onto the lua stack.
void push_simple_dynamic(lua_State *L, StreamBuffer *sb) {
LuaValueType type = sb->read_simple_dynamic_tag();
switch (type) {