mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
CGSignBottle serialization
This commit is contained in:
@@ -1694,12 +1694,12 @@ void CGSignBottle::onHeroVisit( const CGHeroInstance * h ) const
|
|||||||
|
|
||||||
void CGSignBottle::writeJsonOptions(JsonNode& json) const
|
void CGSignBottle::writeJsonOptions(JsonNode& json) const
|
||||||
{
|
{
|
||||||
|
json["text"].String() = message;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CGSignBottle::readJsonOptions(const JsonNode& json)
|
void CGSignBottle::readJsonOptions(const JsonNode& json)
|
||||||
{
|
{
|
||||||
|
message = json["text"].String();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CGScholar::onHeroVisit( const CGHeroInstance * h ) const
|
void CGScholar::onHeroVisit( const CGHeroInstance * h ) const
|
||||||
|
|||||||
Reference in New Issue
Block a user