SetPortValue() 공개 메소드

public SetPortValue ( string portName, bool value ) : void
portName string
value bool
리턴 void
예제 #1
0
 private static void FSet(World world, string str)
 {
     string[] fargs = Regex.Match(str, @"\(.*?\)").Value.Replace("(", "").Replace(")", "").Trim().Split(',');
     string port = fargs[0].Trim();
     bool value = Convert.ToInt32(fargs[1].Trim()) == 1;
     world.SetPortValue(port, value);
 }