示例#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);
 }
示例#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);
 }
示例#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);
 }