Beispiel #1
0
 virtual void RK_CALL load(serialization::iarchive& A, unsigned int) {
   ReaK::shared_object::load(A,shared_object::getStaticObjectType()->TypeVersion());
   std::vector< unsigned int > ID_vect;
   A & RK_SERIAL_LOAD_WITH_ALIAS("TypeName", m_type_name)
     & RK_SERIAL_LOAD_WITH_ALIAS("TypeID", ID_vect)
     & RK_SERIAL_LOAD_WITH_ALIAS("TypeVersion", m_type_version);
   rtti::so_type::weak_pointer tmp_wptr = rtti::getRKSharedObjTypeRepo().findType(&ID_vect[0]);
   if(tmp_wptr.expired())
     m_type_ID_ptr = NULL;
   else
     m_type_ID_ptr = tmp_wptr.lock()->TypeID_begin();
 };
Beispiel #2
0
 virtual void RK_CALL load(ReaK::serialization::iarchive& A, unsigned int) {
   shared_ptr< self > tmp;
   A & RK_SERIAL_LOAD_WITH_ALIAS("Parent",tmp)
     & RK_SERIAL_LOAD_WITH_NAME(Position)
     & RK_SERIAL_LOAD_WITH_NAME(Rotation);
   Parent = tmp;
 };