public int GetRuntimeId(IDictionary <string, string> properties) { for (int i = 0; i < _states.Count; i++) { if (BlockSet.EqualsProperties(_states[i].Properties, properties)) { return(_states[i].SystemId); } } return(Id); }
public BlockSet GetBlock(IDictionary <string, string> properties) { for (int i = 0; i < _states.Count; i++) { if (BlockSet.EqualsProperties(_states[i].Properties, properties)) { return(new BlockSet(this, properties, _states[i].SystemId)); } } return(DefaultBlockSet); }
public int GetRuntimeId(IDictionary <string, string> properties) { for (int i = 0; i < _metadatas.Length; i++) { if (_metadatas[i] != null) { if (BlockSet.EqualsProperties(_metadatas[i].Properties, properties)) { return(_metadatas[i].Data); } } } return(0); }