_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <sstream>
#include <iomanip>
#include "stratagus.h"
#include "unit.h"
#include "actions.h"
#include "animation.h"
#include "construct.h"
#include "iolib.h"
#include "pathfinder.h"
#include "player.h"
#include "spells.h"
#include "unittype.h"
#include <stdio.h>
Functions | |
unit_save.cpp - Save unit. | |
std::string | UnitReference (const CUnit &unit) |
Generate a unit reference, a printable unique string for unit. More... | |
std::string | UnitReference (const CUnitPtr &unit) |
Generate a unit reference, a printable unique string for unit. More... | |
void | SaveUnit (const CUnit &unit, CFile &file) |
save unit-structure More... | |
save unit-structure
Save the state of a unit to file.
unit | Unit pointer to be saved. |
file | Output file. |
std::string UnitReference | ( | const CUnit & | unit | ) |
Generate a unit reference, a printable unique string for unit.
Generate a unit reference, a printable unique string for unit.
std::string UnitReference | ( | const CUnitPtr & | unit | ) |
Generate a unit reference, a printable unique string for unit.
Generate a unit reference, a printable unique string for unit.