Beispiel #1
0
 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);
 }
Beispiel #2
0
 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);
 }
Beispiel #3
0
 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);
 }