#include <primitive.h>
Public Member Functions | |
| void | serial (NLMISC::IStream &f) |
Data Fields | |
| std::string | Name |
| std::vector< bool > | VHidePaths |
| std::vector< bool > | VHidePoints |
| std::vector< bool > | VHideZones |
| std::vector< CPrimPath > | VPaths |
| std::vector< CPrimPoint > | VPoints |
| std::vector< CPrimZone > | VZones |
|
|
Definition at line 928 of file primitive.cpp. References sint, VHidePaths, VHidePoints, VHideZones, VPaths, and VZones. Referenced by NLSOUND::CBackgroundSoundManager::load().
00929 {
00930 f.xmlPushBegin ("REGION");
00931
00932 f.xmlSetAttrib ("NAME");
00933 f.serial (Name);
00934
00935 f.xmlPushEnd();
00936
00937 sint version = 2;
00938 version = f.serialVersion (version);
00939 string check = "REGION";
00940 f.serialCheck (check);
00941
00942 f.xmlPush ("POINTS");
00943 f.serialCont (VPoints);
00944 f.xmlPop ();
00945 f.xmlPush ("PATHES");
00946 f.serialCont (VPaths);
00947 f.xmlPop ();
00948 f.xmlPush ("ZONES");
00949 f.serialCont (VZones);
00950 f.xmlPop ();
00951
00952 if (version > 1)
00953 {
00954 f.xmlPush ("HIDEPOINTS");
00955 f.serialCont (VHidePoints);
00956 f.xmlPop ();
00957 f.xmlPush ("HIDEZONES");
00958 f.serialCont (VHideZones);
00959 f.xmlPop ();
00960 f.xmlPush ("HIDEPATHS");
00961 f.serialCont (VHidePaths);
00962 f.xmlPop ();
00963 }
00964 else
00965 {
00966 VHidePoints.resize (VPoints.size(), false);
00967 VHideZones.resize (VZones.size(), false);
00968 VHidePaths.resize (VPaths.size(), false);
00969 }
00970 }
|
|
|
Definition at line 501 of file primitive.h. |
|
|
Definition at line 508 of file primitive.h. Referenced by NLLIGO::CPrimitives::convert(), and serial(). |
|
|
Definition at line 506 of file primitive.h. Referenced by NLLIGO::CPrimitives::convert(), and serial(). |
|
|
Definition at line 507 of file primitive.h. Referenced by NLLIGO::CPrimitives::convert(), and serial(). |
|
|
Definition at line 504 of file primitive.h. Referenced by NLLIGO::CPrimitives::convert(), NLSOUND::CBackgroundSoundManager::loadSoundsFromRegion(), and serial(). |
|
|
Definition at line 502 of file primitive.h. Referenced by NLLIGO::CPrimitives::convert(), and NLSOUND::CBackgroundSoundManager::loadSoundsFromRegion(). |
|
|
Definition at line 503 of file primitive.h. Referenced by NLLIGO::CPrimitives::convert(), NLSOUND::CBackgroundSoundManager::load(), NLSOUND::CBackgroundSoundManager::loadSamplesFromRegion(), NLSOUND::CBackgroundSoundManager::loadSoundsFromRegion(), and serial(). |
1.3.6