Ignore:
Timestamp:
01/25/17 20:20:45 (8 years ago)
Author:
epyon
Message:
  • lua::stack_proxy RTTI read support
  • missing RTTI declarations
  • new lua::table_guard syntax
File:
1 edited

Legend:

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

    r539 r540  
    2727nv::resource< animator_data > nv::animator_manager::load_animator( nv::lua::table_guard& table, nv::shash64 id, nv::pose_data_set* poses /*= nullptr */ )
    2828{
    29         uint32 count = table.get_size();
     29        uint32 count = table.size();
    3030        if ( count == 0 )
    3131        {
     
    7373                {
    7474                        nv::lua::table_guard states_table( layer_table, "states" );
    75                         uint32 state_count = states_table.get_size();
     75                        uint32 state_count = states_table.size();
    7676                        if ( state_count > 0 )
    7777                        {
     
    119119                                        {
    120120                                                nv::lua::table_guard transitions_table( state_table, "transitions" );
    121                                                 uint32 transition_count = transitions_table.get_size();
     121                                                uint32 transition_count = transitions_table.size();
    122122                                                if ( transition_count > 0 )
    123123                                                {
     
    167167        result.in = table["ease_in"].get_enum( result.in );
    168168        result.out = table["ease_out"].get_enum( nv::easing_type::NONE );
    169         if ( table.has_field( "ease_in_out" ) )
     169        if ( table[ "ease_in_out" ] )
    170170        {
    171171                result.in = result.out = table["ease_in_out"].get_enum( nv::easing_type::NONE );
Note: See TracChangeset for help on using the changeset viewer.