- stm.WriteBytes( cs, strlen(cs) );
- break;
- }
-
- case TVAR_DOUBLE :
- {
- sprintf( buf, "%f",
- *( (double*)( (char*)dataObj+pInfo->mOfs) ) );
-
- stm.WriteBytes( buf, strlen(buf ) );
- break;
- }
-
- case TVAR_REF_ARRAY :
- {
- TArrayInfo& info = *((TArrayInfo*)pInfo);
-
- int sz = *((int*) ( (char*)dataObj+info.mSizeIntOfs ));
- if ( !sz )
- {
- // DBG::
- int u = 0;
- ++u;
- break;
- }
-
- int* array = *((int**)( (char*)dataObj+info.mRefOfs ));
-
- ScriptTemplate* pRefTempl;
-
- for( int i = 0; i != sz; ++i )
- {
- pRefTempl =
- *((ScriptTemplate**)((char*)(array[i])+info.mObjRefTemplOfs));
-
- pRefTempl->PrintScript( (void*)array[i], stm );
- }
-
- break;
- }
-
- default : break;
- }
+ stm.WriteBytes( cs, strlen(cs) );
+ break;
+ }
+
+ case TVAR_DOUBLE :
+ {
+ sprintf( buf, "%f",
+ *( (double*)( (char*)dataObj+pInfo->m_Ofs) ) );
+
+ stm.WriteBytes( buf, strlen(buf ) );
+ break;
+ }
+
+ case TVAR_REF_ARRAY :
+ {
+ TArrayInfo& info = *((TArrayInfo*)pInfo);
+
+ int sz = *((int*) ( (char*)dataObj+info.m_SizeIntOfs ));
+ if ( !sz )
+ {
+ // DBG::
+ int u = 0;
+ ++u;
+ break;
+ }
+
+ int* array = *((int**)( (char*)dataObj+info.m_RefOfs ));
+
+ ScriptTemplate* pRefTempl;
+
+ for( int i = 0; i != sz; ++i )
+ {
+ pRefTempl =
+ *((ScriptTemplate**)((char*)(array[i])+info.m_ObjRefTemplOfs));
+
+ pRefTempl->PrintScript( (void*)array[i], stm );
+ }
+
+ break;
+ }
+
+ default : break;
+ }