38 |
using rpg::character; |
using rpg::character; |
39 |
|
|
40 |
// ctor |
// ctor |
41 |
item::item (const std::string & item) : python::script () |
item::item (const string & item) : python::script () |
42 |
{ |
{ |
43 |
Slot = NULL; |
Slot = NULL; |
44 |
|
|
162 |
} |
} |
163 |
|
|
164 |
// save a single item to file |
// save a single item to file |
165 |
bool item::put_state (const std::string & file) const |
bool item::put_state (const string & file) const |
166 |
{ |
{ |
167 |
base::ogzstream out (file); |
base::ogzstream out (file); |
168 |
|
|
219 |
} |
} |
220 |
|
|
221 |
// load a single item from file |
// load a single item from file |
222 |
bool item::get_state (const std::string & file) |
bool item::get_state (const string & file) |
223 |
{ |
{ |
224 |
base::igzstream in (file); |
base::igzstream in (file); |
225 |
// has file opened? |
// has file opened? |