예제 #1
0
 public bool IsThreat(PedTypeId type, PedTypeFlags threat)
 {
     return(m_pedTypes[(int)type].Threats.HasFlag(threat));
 }
예제 #2
0
 public void AddThreat(PedTypeId type, PedTypeFlags threat)
 {
     m_pedTypes[(int)type].Threats |= threat;
 }
예제 #3
0
 public void RemoveThreat(PedTypeId type, PedTypeFlags threat)
 {
     m_pedTypes[(int)type].Threats &= ~threat;
 }
예제 #4
0
 public void SetThreats(PedTypeId type, PedTypeFlags threat)
 {
     m_pedTypes[(int)type].Threats = threat;
 }