mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-11-03 02:56:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			466 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			466 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#include "actor.hpp"
 | 
						|
 | 
						|
#include "character.hpp"
 | 
						|
 | 
						|
namespace MWMechanics
 | 
						|
{
 | 
						|
    Actor::Actor(const MWWorld::Ptr &ptr, MWRender::Animation *animation)
 | 
						|
    {
 | 
						|
        mCharacterController.reset(new CharacterController(ptr, animation));
 | 
						|
    }
 | 
						|
 | 
						|
    void Actor::updatePtr(const MWWorld::Ptr &newPtr)
 | 
						|
    {
 | 
						|
        mCharacterController->updatePtr(newPtr);
 | 
						|
    }
 | 
						|
 | 
						|
    CharacterController* Actor::getCharacterController()
 | 
						|
    {
 | 
						|
        return mCharacterController.get();
 | 
						|
    }
 | 
						|
}
 |