Esempio n. 1
0
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 )
{
}
RoomPlainPropertyEditorSystem::RoomPlainPropertyEditorSystem()
    : mScene( Scene::Get() )
    , mEditorPropModel( "editor_plain_prop", &RootModel::Get() )
    , mPropNamesModel( (ModelValue::get_string_vec_t) RefTo( mPropNames ), "props", &mEditorPropModel )
    , mPropSelectedModel( StringFunc( this, &RoomPlainPropertyEditorSystem::OnPropSelected ), "prop_selected", &mEditorPropModel )
    , mPropStatesModel( (ModelValue::get_string_vec_t) RefTo( mPropStates ), "prop_states", &mEditorPropModel )
{
}