open_toontown_panda3d/panda/src/egg/eggAnimPreload.cxx

43 lines
1005 B
C++

/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file eggAnimPreload.cxx
* @author drose
* @date 2008-08-06
*/
#include "eggAnimPreload.h"
#include "string_utils.h"
#include "indent.h"
TypeHandle EggAnimPreload::_type_handle;
/**
* Writes the table and all of its children to the indicated output stream in
* Egg format.
*/
void EggAnimPreload::
write(std::ostream &out, int indent_level) const {
test_under_integrity();
write_header(out, indent_level, "<AnimPreload>");
if (has_fps()) {
indent(out, indent_level + 2)
<< "<Scalar> fps { " << get_fps() << " }\n";
}
if (has_num_frames()) {
indent(out, indent_level + 2)
<< "<Scalar> frames { " << get_num_frames() << " }\n";
}
indent(out, indent_level) << "}\n";
}