Ignore:
Timestamp:
05/15/15 12:01:41 (10 years ago)
Author:
epyon
Message:
  • more string_ref changes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/engine/particle_engine.cc

    r353 r361  
    300300void nv::particle_engine::load( lua::table_guard& table )
    301301{
    302         std::string id = table.get_string( "id" );
     302        std::string id = table.get_std_string( "id" );
    303303        if ( id == "" )
    304304        {
     
    317317        data.affector_count  = 0;
    318318
    319         std::string orientation = table.get_string( "orientation", "point" );
     319        const_string orientation = table.get_string( "orientation", "point" );
    320320        if ( orientation == "point" )                     { data.orientation = particle_orientation::POINT; }
    321321        else if ( orientation == "oriented" )             { data.orientation = particle_orientation::ORIENTED; }
     
    329329        }
    330330
    331         std::string origin = table.get_string( "origin", "center" );
     331        const_string origin = table.get_string( "origin", "center" );
    332332        if      ( origin == "center" )        { data.origin = particle_origin::CENTER; }
    333333        else if ( origin == "top_left" )      { data.origin = particle_origin::TOP_LEFT; }
     
    353353        {
    354354                lua::table_guard element( table, i+1 );
    355                 std::string type     = element.get_string("type");
    356                 std::string sub_type = element.get_string("sub_type");
     355                const_string type     = element.get_string("type");
     356                std::string sub_type = element.get_std_string("sub_type");
    357357                if ( type == "emmiter" )
    358358                {
Note: See TracChangeset for help on using the changeset viewer.