40 #ifndef _managerbase_cpp
41 #define _managerbase_cpp
44 #include "managerbase.h"
45 #include "stringtool.h"
80 case ManagerBase::MT_ActorManager:
81 return "ActorManager";
83 case ManagerBase::MT_AnimationManager:
84 return "AnimationManager";
86 case ManagerBase::MT_AreaEffectManager:
87 return "AreaEffectManager";
89 case ManagerBase::MT_AudioManager:
90 return "AudioManager";
92 case ManagerBase::MT_CameraManager:
93 return "CameraManager";
95 case ManagerBase::MT_CollisionShapeManager:
96 return "CollisionShapeManager";
98 case ManagerBase::MT_CompositorManager:
99 return "CompositorManager";
101 case ManagerBase::MT_DebrisManager:
102 return "DebrisManager";
104 case ManagerBase::MT_EventManager:
105 return "EventManager";
107 case ManagerBase::MT_GraphicsManager:
108 return "GraphicsManager";
110 case ManagerBase::MT_InputManager:
111 return "InputManager";
113 case ManagerBase::MT_LogManager:
116 case ManagerBase::MT_MeshManager:
117 return "MeshManager";
119 case ManagerBase::MT_NetworkManager:
120 return "NetworkManager";
122 case ManagerBase::MT_PagingManager:
123 return "PagingManager";
125 case ManagerBase::MT_PhysicsManager:
126 return "PhysicsManager";
128 case ManagerBase::MT_ResourceManager:
129 return "ResourceManager";
131 case ManagerBase::MT_SceneManager:
132 return "SceneManager";
134 case ManagerBase::MT_ScriptingManager:
135 return "ScriptingManager";
137 case ManagerBase::MT_SoundScapeManager:
138 return "SoundScapeManager";
140 case ManagerBase::MT_TerrainManager:
141 return "TerrainManager";
143 case ManagerBase::MT_UIManager:
146 case ManagerBase::MT_VehicleManager:
147 return "VehicleManager";
150 return "UserCreated";
160 String Lower = ManagerName;
162 switch ( Lower.at(0) )
166 if(
'c' == Lower.at(1) )
return ManagerBase::MT_ActorManager;
167 else if(
'n' == Lower.at(1) )
return ManagerBase::MT_AnimationManager;
168 else if(
'r' == Lower.at(1) )
return ManagerBase::MT_AreaEffectManager;
169 else if(
'u' == Lower.at(1) )
return ManagerBase::MT_AudioManager;
174 if(
'a' == Lower.at(1) ) {
175 return ManagerBase::MT_CameraManager;
176 }
else if(
'o' == Lower.at(1) ) {
177 if(
'l' == Lower.at(2) )
return ManagerBase::MT_CollisionShapeManager;
178 else if(
'm' == Lower.at(2) )
return ManagerBase::MT_CompositorManager;
184 return ManagerBase::MT_DebrisManager;
189 return ManagerBase::MT_EventManager;
194 return ManagerBase::MT_GraphicsManager;
199 return ManagerBase::MT_InputManager;
204 return ManagerBase::MT_LogManager;
209 return ManagerBase::MT_MeshManager;
214 return ManagerBase::MT_NetworkManager;
219 if(
'a' == Lower.at(1) )
return ManagerBase::MT_PagingManager;
220 else if(
'h' == Lower.at(1) )
return ManagerBase::MT_PhysicsManager;
225 return ManagerBase::MT_ResourceManager;
230 if(
'o' == Lower.at(1) ) {
231 return ManagerBase::MT_SoundScapeManager;
234 if(
'e' == Lower.at(2) )
return ManagerBase::MT_SceneManager;
235 else if(
'r' == Lower.at(2) )
return ManagerBase::MT_ScriptingManager;
241 return ManagerBase::MT_TerrainManager;
246 if(
'i' == Lower.at(1) )
return ManagerBase::MT_UIManager;
252 return ManagerBase::MT_VehicleManager;