public void SetVal(Wstates w, bool val) { states[w].Value = val; // set the value to the world state and assing it a true value into its is enabled boolean variable states[w].IsEnabled = true; }
public bool GetVal(Wstates w) { return(states[w].Value); // return the current value of the world state }