aigroupbehaviour.c 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. class AIGroupBehaviour : Managed
  2. {
  3. private void AIGroupBehaviour();
  4. private void ~AIGroupBehaviour();
  5. }
  6. class BehaviourGroupInfectedPackWaypointParams
  7. {
  8. vector m_CenterPosition;
  9. float m_Radius;
  10. void BehaviourGroupInfectedPackWaypointParams(vector pos, float radius)
  11. {
  12. m_CenterPosition = pos;
  13. m_Radius = radius;
  14. }
  15. }
  16. class BehaviourGroupInfectedPack : AIGroupBehaviour
  17. {
  18. /*!
  19. Group waypoints initialization
  20. /param [in] waypointDefaultIndex Starting waypoint. Index to array of waypoints specified by waypointParams. Acceptable range is [0, waypointParams.Count() - 1]
  21. /param [in] forwardDirection Waypoints traverse order.
  22. /param [in] loop Specifies what happens after last waypoint is reached. true - cycle waypoints, false - patrol waypoints
  23. */
  24. proto native void SetWaypoints(array<ref BehaviourGroupInfectedPackWaypointParams> waypointParams, int waypointDefaultIndex, bool forwardDirection, bool loop);
  25. proto native void SetWaypointsTraverseDirection(bool forwardDirection);
  26. proto native void SetWaypointsLoop(bool loop);
  27. proto native void SetCurrentWaypoint(int waypointIndex);
  28. }