| 1 |
#ifndef SRPROPERTYSAVER_H_ |
| 2 |
#define SRPROPERTYSAVER_H_ |
| 3 |
|
| 4 |
#include "StimResponse.h" |
| 5 |
#include "SREntity.h" |
| 6 |
|
| 7 |
// Forward declaration |
| 8 |
class Entity; |
| 9 |
|
| 10 |
/** greebo: Visitor class - saves the spawnargs to the given entity. |
| 11 |
*/ |
| 12 |
class SRPropertySaver |
| 13 |
{ |
| 14 |
Entity* _target; |
| 15 |
|
| 16 |
// The list of allowed keys |
| 17 |
SREntity::KeyList& _keys; |
| 18 |
|
| 19 |
public: |
| 20 |
SRPropertySaver(Entity* target, SREntity::KeyList& keys); |
| 21 |
|
| 22 |
/** greebo: Visitor method, saves the spawnargs to the |
| 23 |
* target entity. |
| 24 |
*/ |
| 25 |
void visit(StimResponse& sr); |
| 26 |
}; |
| 27 |
|
| 28 |
#endif /*SRPROPERTYSAVER_H_*/ |