Пример #1
0
void World::StartGame( const GameSettings& _Settings )
{
    // Init game
    m_spGame = GamePtr( new Game() );

    GameLogic logic;
    logic.Setup( m_spDatabase, m_spGame );
    logic.StartGame( _Settings );
}
Пример #2
0
void World::Update( Float32 _f32TimeDifference )
{
    if ( m_spGame != NULL )
    {
        GameLogic logic;
        logic.Setup( m_spDatabase, m_spGame );
        logic.UpdateGame( _f32TimeDifference );
    }
}