Make some of the class names in BaseBuffer more accurate.
This commit is contained in:
@@ -124,7 +124,7 @@
|
||||
#include <cassert>
|
||||
#include <ostream>
|
||||
|
||||
struct AnimValue : public LuaValueHolderValue {
|
||||
struct AnimValue : public LuaValue {
|
||||
bool persistent;
|
||||
|
||||
AnimValue() { persistent = false; }
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user