--------------------------------------------------------------------------
| 599 | |
| 600 | //-------------------------------------------------------------------------- |
| 601 | bool blTerrainProxy::setPersistInfo(PersistInfo::PersistChunk * info) |
| 602 | { |
| 603 | if(!Parent::setPersistInfo(info)) |
| 604 | return(false); |
| 605 | |
| 606 | blTerrainChunk * chunk = dynamic_cast<blTerrainChunk*>(info); |
| 607 | AssertFatal(chunk, "blTerrainProxy::setPersistInfo: invalid info chunk!"); |
| 608 | |
| 609 | TerrainBlock * terrain = getObject(); |
| 610 | if(!terrain || !terrain->getLightMap()) |
| 611 | return(false); |
| 612 | |
| 613 | terrain->setLightMap( new GBitmap( *chunk->mLightmap) ); |
| 614 | |
| 615 | return(true); |
| 616 | } |
| 617 | |
| 618 | bool blTerrainProxy::getPersistInfo(PersistInfo::PersistChunk * info) |
| 619 | { |
nothing calls this directly
no test coverage detected