4 const int MAX_REGION_CONNECT = 128;
8 float m_MaxHealth = 500;
9 float m_StructuralSupportPct = 0.55;
10 ResourceName m_DestructFX_PTC =
"{B6CBD40830C3F0A4}graphics/particle/legacy/tkom/weapon/destruct_wall.ptc";
11 ResourceName m_DestructFX_SND =
"";
12 ResourceName m_DestructFX_PFB =
"";
15 private int m_RegionConnect_OutNum = 0;
18 private int m_RegionConnect_InNum = 0;
20 private vector m_RegionPos = vector.Zero;
21 private vector m_RegionSize = vector.Zero;
24 void SetRegionIndex(
int region)
36 void SetRegionSize(vector size)
42 vector GetRegionSize()
48 void SetRegionPos(vector pos)
60 void SetMaxHealth(
float health)
72 void SetDestructFX(ResourceName ptc, ResourceName snd, ResourceName pfb)
74 m_DestructFX_PTC = ptc;
75 m_DestructFX_SND = snd;
76 m_DestructFX_PFB = pfb;
80 bool GetDestructFX(out ResourceName ptc, out ResourceName snd, out ResourceName pfb)
82 if (m_DestructFX_PTC ==
string.Empty && m_DestructFX_SND ==
string.Empty && m_DestructFX_PFB ==
string.Empty)
85 ptc = m_DestructFX_PTC;
86 snd = m_DestructFX_SND;
87 pfb = m_DestructFX_PFB;
93 void SetStructuralSupportPercentage(
float pct)
95 m_StructuralSupportPct = pct;
99 float GetStructuralSupportPercentage()
101 return m_StructuralSupportPct;
107 m_RegionConnect_In[m_RegionConnect_InNum++] = region;
113 m_RegionConnect_Out[m_RegionConnect_OutNum++] = region;
117 int GetConnectionNumIn()
119 return m_RegionConnect_InNum;
123 int GetConnectionNumOut()
125 return m_RegionConnect_OutNum;
131 if (
index >= m_RegionConnect_InNum)
134 return m_RegionConnect_In[
index];
140 if (
index >= m_RegionConnect_OutNum)
143 return m_RegionConnect_Out[
index];