Linux multi-monitor fullscreen support
[ryzomcore.git] / ryzom / client / src / lod_character_user_manager.cpp
blob7b12826871fd3641f33fe76bd16119d67c66d1ff
1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #include "stdpch.h"
21 #include "lod_character_user_manager.h"
22 #include "nel/3d/u_scene.h"
23 #include "nel/misc/debug.h"
24 #include "nel/misc/smart_ptr.h"
25 #include "nel/misc/path.h"
26 // Georges
27 #include "nel/georges/u_form.h"
28 #include "nel/georges/u_form_elm.h"
29 #include "nel/georges/u_form_loader.h"
31 // Client
32 #include "sheet_manager.h"
36 ///////////
37 // USING //
38 ///////////
39 using namespace NLMISC;
40 using namespace NLGEORGES;
41 using namespace NL3D;
42 using namespace std;
45 ////////////
46 // EXTERN //
47 ////////////
48 extern UScene *Scene;
51 // ***************************************************************************
52 CLodCharacterUserManager LodCharacterUserManager;
55 // ***************************************************************************
56 CLodCharacterUserManager::CLodCharacterUserManager()
61 // ***************************************************************************
62 bool CLodCharacterUserManager::addLodShapeBank(const std::string &filename)
64 // Scene must exist
65 nlassert(Scene);
67 try
69 // load and add the file to the main scene
70 Scene->loadCLodShapeBank(filename);
72 catch(const Exception &e)
74 nlwarning(e.what());
75 return false;
78 return true;
82 // ***************************************************************************
83 void CLodCharacterUserManager::init()
85 // Scene must exist
86 nlassert(Scene);
89 // add player LodShapeBank.
90 addLodShapeBank("characters.clodbank");
91 // add creatures LodShapeBank.
92 addLodShapeBank("fauna.clodbank");