Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.9 KiB

  1. //====== Copyright � 1996-2004, Valve Corporation, All rights reserved. =======
  2. //
  3. // A class representing a world node
  4. //
  5. //=============================================================================
  6. #ifndef DMEWORLDNODE_H
  7. #define DMEWORLDNODE_H
  8. #ifdef COMPILER_MSVC
  9. #pragma once
  10. #endif
  11. #include "datamodel/dmelement.h"
  12. #include "datamodel/dmattributevar.h"
  13. #include "dmeworldlights.h"
  14. //-----------------------------------------------------------------------------
  15. // Forward declarations
  16. //-----------------------------------------------------------------------------
  17. //-----------------------------------------------------------------------------
  18. // A scene object in a world node
  19. //-----------------------------------------------------------------------------
  20. class CDmeSceneObject : public CDmElement
  21. {
  22. DEFINE_ELEMENT( CDmeSceneObject, CDmElement );
  23. public:
  24. CDmaVar< Vector4D > m_vTransform0;
  25. CDmaVar< Vector4D > m_vTransform1;
  26. CDmaVar< Vector4D > m_vTransform2;
  27. CDmaString m_renderableFileName;
  28. };
  29. //-----------------------------------------------------------------------------
  30. // A world node
  31. //-----------------------------------------------------------------------------
  32. class CDmeWorldNode : public CDmElement
  33. {
  34. DEFINE_ELEMENT( CDmeWorldNode, CDmElement );
  35. public:
  36. CDmaVar< int32 > m_nID;
  37. CDmaVar< int32 > m_Flags;
  38. CDmaVar< int32 > m_nParent;
  39. CDmaVar< Vector > m_vOrigin;
  40. CDmaVar< Vector > m_vMinBounds;
  41. CDmaVar< Vector > m_vMaxBounds;
  42. CDmaVar< float > m_flMinimumDistance;
  43. CDmaArray< int32 > m_ChildNodeIndices;
  44. CDmaElementArray< CDmeSceneObject > m_SceneObjects;
  45. CDmaElementArray< CDmeWorldPointLight > m_PointLights;
  46. CDmaElementArray< CDmeWorldHemiLight > m_HemiLights;
  47. CDmaElementArray< CDmeWorldSpotLight > m_SpotLights;
  48. };
  49. #endif // DMEWORLDNODE_H