EditorSelectSystem::EditorSelectSystem()
    : mScene( Scene::Get() )
    , mEditorSelectModel( "editor_select", &RootModel::Get() )
    , mMouseModeModel( StringFunc( this, &EditorSelectSystem::SetMouseMode ), "mode", &mEditorSelectModel )
    , mEditorSelectStateModel( StringFunc( this, &EditorSelectSystem::SetEditorSelectState ), "state", &mEditorSelectModel )
    , mRemoveFromAllGroupsModel( VoidFunc( this, &EditorSelectSystem::OnRemoveFromAllGroups ), "remove_from_all_groups", &mEditorSelectModel )
{
}
Beispiel #2
0
ClientSystem::ClientSystem()
    : mClient( NULL )
    , mPeer( NULL )
    , mClientModel( "client", &RootModel::Get() )
    , mConnectModel( VoidFunc( this, &ClientSystem::Connect ), "connect", &mClientModel )
    , mMessageHolder( MessageHolder::Get() )
    , mProgramState( ProgramState::Get() )
    , mRunning( false )
    , mThreaded( false )
    , mWaitMillisecs( 10 )
{
    mOnPhaseChanged = EventServer<PhaseChangedEvent>::Get().Subscribe( boost::bind( &ClientSystem::OnPhaseChanged, this, _1 ) );
}
Beispiel #3
0
BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpReserved )
{
	BOOL bReturnValue = TRUE;
	switch (dwReason)
	{
	case DLL_QUERY_HMODULE:
		if( lpReserved != NULL )
			*(HMODULE *)lpReserved = hAppInstance;
		break;
	case DLL_PROCESS_ATTACH:
		hAppInstance = hinstDLL;
		VoidFunc();
		break;
	case DLL_THREAD_ATTACH:
	case DLL_THREAD_DETACH:
		break;
	}
	return bReturnValue;
}