ScriptFuncs.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. * Copyright © 2011-2020 Frictional Games
  3. *
  4. * This file is part of Amnesia: A Machine For Pigs.
  5. *
  6. * Amnesia: A Machine For Pigs is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. * Amnesia: A Machine For Pigs is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with Amnesia: A Machine For Pigs. If not, see <https://www.gnu.org/licenses/>.
  17. */
  18. #ifndef HPL_SCRIPT_FUNCS_H
  19. #define HPL_SCRIPT_FUNCS_H
  20. #include "physics/PhysicsJoint.h"
  21. namespace hpl {
  22. class cGraphics;
  23. class cResources;
  24. class cSystem;
  25. class cSound;
  26. class cScene;
  27. class cInput;
  28. class cEngine;
  29. //---------------------------------------
  30. class cScriptJointCallback : public iPhysicsJointCallback
  31. {
  32. public:
  33. cScriptJointCallback(cScene *apScene);
  34. void OnMinLimit(iPhysicsJoint *apJoint);
  35. void OnMaxLimit(iPhysicsJoint *apJoint);
  36. bool IsScript(){ return true;}
  37. tString msMaxFunc;
  38. tString msMinFunc;
  39. cScene *mpScene;
  40. };
  41. //---------------------------------------
  42. class cScriptFuncs
  43. {
  44. public:
  45. static void Init( cGraphics* apGraphics,
  46. cResources *apResources,
  47. cSystem *apSystem,
  48. cInput *apInput,
  49. cScene *apScene,
  50. cSound *apSound,
  51. cEngine *apGame
  52. );
  53. };
  54. };
  55. #endif // HPL_SCRIPT_FUNCS_H