public IfAction( IfVarType var, string text ) { m_Var = var; m_Value = text.ToLower(); }
public IfAction( IfVarType var, sbyte dir, int val ) { m_Var = var; m_Direction = dir; m_Value = val; }
public IfAction( IfVarType var, sbyte dir, int val, string counter ) { m_Var = var; m_Direction = dir; m_Value = val; m_Counter = counter; }
public IfAction( string[] args ) { m_Var = (IfVarType)Convert.ToInt32( args[1] ); try { m_Direction = Convert.ToSByte( args[2] ); if ( m_Direction > 1 ) m_Direction = 0; } catch { m_Direction = -1; } if ( m_Var != IfVarType.SysMessage ) m_Value = Convert.ToInt32( args[3] ); else m_Value = args[3].ToLower(); if ( m_Var == IfVarType.Counter ) m_Counter = args[4]; }