$treeview $search $mathjax
Stratagus
2.2.6
$projectbrief
|
$projectbrief
|
$searchbox |
_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ 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 "unittype.h"
#include "unit_manager.h"
#include "player.h"
#include "animation.h"
#include "spells.h"
#include "construct.h"
#include "iolib.h"
Functions | |
unit_save.cpp - Save unit. | |
std::string | UnitReference (const CUnit &unit) |
Generate a unit reference, a printable unique string for unit. | |
void | SaveOrder (const COrderPtr order, CFile *file) |
Save an order. | |
void | SaveUnit (const CUnit &unit, CFile *file) |
save unit-structure | |
void | SaveUnits (CFile *file) |
save all units |
Save an order.
Save an order.
order | Order who should be saved. | |
file | Output file. |
save unit-structure
Save the state of a unit to file.
unit | Unit pointer to be saved. | |
file | Output file. |
void SaveUnits | ( | CFile * | file | ) |
save all units
Save state of units to file.
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.