Changeset 361 for trunk/src/engine
- Timestamp:
- 05/15/15 12:01:41 (10 years ago)
- Location:
- trunk/src/engine
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/engine/particle_engine.cc
r353 r361 300 300 void nv::particle_engine::load( lua::table_guard& table ) 301 301 { 302 std::string id = table.get_st ring( "id" );302 std::string id = table.get_std_string( "id" ); 303 303 if ( id == "" ) 304 304 { … … 317 317 data.affector_count = 0; 318 318 319 std::string orientation = table.get_string( "orientation", "point" );319 const_string orientation = table.get_string( "orientation", "point" ); 320 320 if ( orientation == "point" ) { data.orientation = particle_orientation::POINT; } 321 321 else if ( orientation == "oriented" ) { data.orientation = particle_orientation::ORIENTED; } … … 329 329 } 330 330 331 std::string origin = table.get_string( "origin", "center" );331 const_string origin = table.get_string( "origin", "center" ); 332 332 if ( origin == "center" ) { data.origin = particle_origin::CENTER; } 333 333 else if ( origin == "top_left" ) { data.origin = particle_origin::TOP_LEFT; } … … 353 353 { 354 354 lua::table_guard element( table, i+1 ); 355 std::string type = element.get_string("type");356 std::string sub_type = element.get_st ring("sub_type");355 const_string type = element.get_string("type"); 356 std::string sub_type = element.get_std_string("sub_type"); 357 357 if ( type == "emmiter" ) 358 358 { -
trunk/src/engine/program_manager.cc
r323 r361 49 49 if ( table.is_string( "files" ) ) 50 50 { 51 out += nv::slurp( table.get_st ring( "files" ) );51 out += nv::slurp( table.get_std_string( "files" ) ); 52 52 } 53 53 else if ( table.is_table( "files" ) ) … … 65 65 if ( table.is_string( "file" ) ) 66 66 { 67 out += "#line 1\n" +nv::slurp( table.get_string( "file" ) );67 out += "#line 1\n" + nv::slurp( table.get_std_string( "file" ) ); 68 68 } 69 69 70 70 if ( table.is_string( "source" ) ) 71 71 { 72 out += table.get_st ring( "source" );72 out += table.get_std_string( "source" ); 73 73 } 74 74 } -
trunk/src/engine/resource_system.cc
r358 r361 35 35 lua::table_guard sub_table( table, i+1 ); 36 36 resource_id rid = load_resource( sub_table ); 37 if ( rid != 0 ) m_names[ sub_table.get_st ring("id") ] = rid;37 if ( rid != 0 ) m_names[ sub_table.get_std_string("id") ] = rid; 38 38 } 39 39 }
Note: See TracChangeset
for help on using the changeset viewer.