bleedingsourcezone.c 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. class BleedingSourceZone
  2. {
  3. string m_FireSelectionName;
  4. int m_Bit;
  5. vector m_EmitterOffset;
  6. vector m_EmitterOrientation;
  7. string m_Bone;
  8. float m_FlowModifier;
  9. int m_MaxTime;
  10. string m_ParticleName;
  11. int m_InventorySlotLocation;
  12. void BleedingSourceZone(string selection_name, int bit, vector offset, vector orientation, string bone, int max_time, float flow_modifier, string particle_name)
  13. {
  14. m_FireSelectionName = selection_name;
  15. m_Bit = bit;
  16. m_EmitterOffset = offset;
  17. m_EmitterOrientation = orientation;
  18. m_Bone = bone;
  19. m_FlowModifier = flow_modifier;
  20. m_MaxTime = max_time;
  21. m_ParticleName = particle_name;
  22. }
  23. //which inv location is associated(is covering) with this bleeding source ?
  24. void SetInvLocation(int inv_slot)
  25. {
  26. m_InventorySlotLocation = inv_slot;
  27. }
  28. int GetInvLocation()
  29. {
  30. return m_InventorySlotLocation;
  31. }
  32. void ~BleedingSourceZone()
  33. {
  34. }
  35. string GetSelectionName()
  36. {
  37. return m_FireSelectionName;
  38. }
  39. int GetMaxTime()
  40. {
  41. return m_MaxTime;
  42. }
  43. string GetParticleName()
  44. {
  45. return m_ParticleName;
  46. }
  47. int GetBit()
  48. {
  49. return m_Bit;
  50. }
  51. float GetFlowModifier()
  52. {
  53. return m_FlowModifier;
  54. }
  55. vector GetOrientation()
  56. {
  57. return m_EmitterOrientation;
  58. }
  59. vector GetOffset()
  60. {
  61. return m_EmitterOffset;
  62. }
  63. string GetBoneName()
  64. {
  65. return m_Bone;
  66. }
  67. }