반응형

typedef TWeakPtr<Combine_Base> wpCombineBase;




TSharedPtr<Combine_EditorLogin> spCombineEditorLogin = 

StaticCastSharedPtr<Combine_EditorLogin>(retTop);

//스태틱 캐스팅과 콘스트 캐스팅은 지원하는데 Dynamic cast 는 없다



TSharedPtr<Combine_EditorGameSvrAuth> spCombineEditorGameSvrAuth = 


StaticCastSharedPtr<Combine_EditorGameSvrAuth>(retTop);




//TweakPtr 이 존재하는데 C++ 에서는 Lock() 함수지만 Unreal 에서는 Pin()

//이라는 이름으로 shared_ptr 로 convert 하는 함수를 지원한다


auto pred = [](wpCombineBase elem1)->bool {

return elem1.Pin()->GetTypeID() == "EditorLogin";

};


반응형

+ Recent posts