Start breaking world.cpp into multiple files

This commit is contained in:
2021-08-24 10:59:19 -04:00
parent 2be6c2c58e
commit 82f1f69c25
6 changed files with 426 additions and 434 deletions

View File

@@ -285,11 +285,26 @@ private:
static void diff_visible_animations(const TanVector &mvis, const TanVector &svis, StreamBuffer *sb);
void patch_visible_animations(StreamBuffer *sb);
// Compare the general tables.
//
void diff_lua_tables(lua_State *master, StreamBuffer *sb);
// Compare the tangible databases.
//
void diff_tangible_databases(const IdVector &basis, lua_State *master, StreamBuffer *sb);
public:
// Pass 3 of difference transmission: numbering of tables.
///////////////////////////////////////////////////////////
//
// Numbering and pairing of lua tables.
//
// Table-to-number mapping is stored in registry.tnmap
// Number-to-table mapping is stored in registry.ntmap
//
///////////////////////////////////////////////////////////
// numbering of tables.
//
// Returns the total number of tables numbered.
//
int number_lua_tables(const IdVector &basis);
@@ -313,14 +328,6 @@ public:
//
void create_new_tables(int n);
// Compare the general tables.
//
void diff_lua_tables(lua_State *master, StreamBuffer *sb);
// Compare the tangible databases.
//
void diff_tangible_databases(const IdVector &basis, lua_State *master, StreamBuffer *sb);
private:
// Type of model
util::WorldType world_type_;