MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / SaveHistoryState

Method SaveHistoryState

Source/Objects/object.cpp:46–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44extern Timer game_timer;
45
46void Object::SaveHistoryState(std::list<SavedChunk> &chunk_list, int state_id) {
47 SavedChunk saved_chunk;
48 saved_chunk.obj_id = GetID();
49 if (GetType() != _group && GetType() != _prefab) {
50 saved_chunk.type = ChunkType::OBJECT;
51 } else {
52 saved_chunk.type = ChunkType::GROUP;
53 }
54
55 GetDesc(saved_chunk.desc);
56
57 AddChunkToHistory(chunk_list, state_id, saved_chunk);
58}
59
60int Object::lineCheck(const vec3 &start, const vec3 &end, vec3 *point, vec3 *normal) {
61 return LineCheckEditorCube(start, end, point, normal);

Callers

nothing calls this directly

Calls 2

GetTypeFunction · 0.85
AddChunkToHistoryFunction · 0.85

Tested by

no test coverage detected