Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }