/////////////////////////////////////////////////////////////////
| 211 | |
| 212 | ////////////////////////////////////////////////////////////////////// |
| 213 | bool CEntitySystem::Init(ISystem *pSystem) |
| 214 | { |
| 215 | if (!pSystem) return false; |
| 216 | m_pISystem=pSystem; |
| 217 | //m_pSink=NULL; |
| 218 | m_lstSinks.clear(); |
| 219 | m_mapEntities.clear(); |
| 220 | |
| 221 | m_pScriptSystem=pSystem->GetIScriptSystem(); |
| 222 | |
| 223 | m_pScriptSystem->SetGlobalValue("ScriptEvent_Activate", ScriptEvent_Activate); |
| 224 | m_pScriptSystem->SetGlobalValue("ScriptEvent_Deactivate", ScriptEvent_Deactivate); |
| 225 | m_pScriptSystem->SetGlobalValue("ScriptEvent_FireModeChange", ScriptEvent_FireModeChange); |
| 226 | m_pScriptSystem->SetGlobalValue("ScriptEvent_DropItem", ScriptEvent_DropItem); |
| 227 | m_pScriptSystem->SetGlobalValue("ScriptEvent_Reset", ScriptEvent_Reset); |
| 228 | m_pScriptSystem->SetGlobalValue("ScriptEvent_Timer", ScriptEvent_Timer); |
| 229 | m_pScriptSystem->SetGlobalValue("ScriptEvent_StartAnimation", ScriptEvent_StartAnimation); |
| 230 | m_pScriptSystem->SetGlobalValue("ScriptEvent_AnimationKey", ScriptEvent_AnimationKey); |
| 231 | m_pScriptSystem->SetGlobalValue("ScriptEvent_EndAnimation", ScriptEvent_EndAnimation); |
| 232 | m_pScriptSystem->SetGlobalValue("ScriptEvent_Respawn", ScriptEvent_Respawn); |
| 233 | m_pScriptSystem->SetGlobalValue("ScriptEvent_ItemActivated", ScriptEvent_ItemActivated); |
| 234 | m_pScriptSystem->SetGlobalValue("ScriptEvent_ZoomToggle", ScriptEvent_ZoomToggle); |
| 235 | m_pScriptSystem->SetGlobalValue("ScriptEvent_ZoomIn", ScriptEvent_ZoomIn); |
| 236 | m_pScriptSystem->SetGlobalValue("ScriptEvent_ZoomOut", ScriptEvent_ZoomOut); |
| 237 | m_pScriptSystem->SetGlobalValue("ScriptEvent_Hit", ScriptEvent_Hit); |
| 238 | m_pScriptSystem->SetGlobalValue("ScriptEvent_WeaponReady",ScriptEvent_WeaponReady); |
| 239 | m_pScriptSystem->SetGlobalValue("ScriptEvent_Reload",ScriptEvent_Reload); |
| 240 | m_pScriptSystem->SetGlobalValue("ScriptEvent_Fire", ScriptEvent_Fire); |
| 241 | m_pScriptSystem->SetGlobalValue("ScriptEvent_StopFiring", ScriptEvent_StopFiring); |
| 242 | m_pScriptSystem->SetGlobalValue("ScriptEvent_FireCancel", ScriptEvent_FireCancel); |
| 243 | m_pScriptSystem->SetGlobalValue("ScriptEvent_FireGrenade", ScriptEvent_FireGrenade); |
| 244 | m_pScriptSystem->SetGlobalValue("ScriptEvent_Command", ScriptEvent_Command); |
| 245 | m_pScriptSystem->SetGlobalValue("ScriptEvent_Die", ScriptEvent_Die); |
| 246 | m_pScriptSystem->SetGlobalValue("ScriptEvent_Land", ScriptEvent_Land); |
| 247 | m_pScriptSystem->SetGlobalValue("ScriptEvent_PhysCollision", ScriptEvent_PhysCollision); |
| 248 | m_pScriptSystem->SetGlobalValue("ScriptEvent_ViewModeChange", ScriptEvent_ViewModeChange); |
| 249 | m_pScriptSystem->SetGlobalValue("ScriptEvent_SelectWeapon",ScriptEvent_SelectWeapon); |
| 250 | m_pScriptSystem->SetGlobalValue("ScriptEvent_Deafened", ScriptEvent_Deafened); |
| 251 | m_pScriptSystem->SetGlobalValue("ScriptEvent_CycleGrenade", ScriptEvent_CycleGrenade); |
| 252 | m_pScriptSystem->SetGlobalValue("ScriptEvent_Use",ScriptEvent_Use); |
| 253 | m_pScriptSystem->SetGlobalValue("ScriptEvent_MeleeAttack",ScriptEvent_MeleeAttack); |
| 254 | m_pScriptSystem->SetGlobalValue("ScriptEvent_PhysicalizeOnDemand",ScriptEvent_PhysicalizeOnDemand); |
| 255 | m_pScriptSystem->SetGlobalValue("ScriptEvent_StanceChange",ScriptEvent_StanceChange); |
| 256 | m_pScriptSystem->SetGlobalValue("ScriptEvent_FlashLightSwitch", ScriptEvent_FlashLightSwitch); |
| 257 | m_pScriptSystem->SetGlobalValue("ScriptEvent_EnterWater", ScriptEvent_EnterWater); |
| 258 | m_pScriptSystem->SetGlobalValue("ScriptEvent_CycleVehiclePos", ScriptEvent_CycleVehiclePos); |
| 259 | m_pScriptSystem->SetGlobalValue("ScriptEvent_AllClear", ScriptEvent_AllClear); |
| 260 | m_pScriptSystem->SetGlobalValue("ScriptEvent_Expression", ScriptEvent_Expression); |
| 261 | m_pScriptSystem->SetGlobalValue("ScriptEvent_InVehicleAnimation", ScriptEvent_InVehicleAnimation); |
| 262 | m_pScriptSystem->SetGlobalValue("ScriptEvent_InVehicleAmmo", ScriptEvent_InVehicleAmmo); |
| 263 | m_pScriptSystem->SetGlobalValue("ScriptEvent_ProcessCharacterEffects", ScriptEvent_ProcessCharacterEffects); |
| 264 | m_pScriptSystem->SetGlobalValue("ScriptEvent_Jump", ScriptEvent_Jump); |
| 265 | |
| 266 | return true; |
| 267 | } |
| 268 | |
| 269 | ////////////////////////////////////////////////////////////////////// |
| 270 | void CEntitySystem::Release() |
no test coverage detected