예제 #1
0
 public DictElem Get(DictName Name)
 {
     if (D.ContainsKey(Name.Name))
     {
         return(D[Name.Name]);
     }
     else
     {
         return(null);
     }
 }
 private void HandleServerBuildingDestroyed(int SerializedID, Vector3 Dir)
 {
     if (BuildingList.ContainsKey(SerializedID))
     {
         Building TargetBuilding = BuildingList [SerializedID];
         if (TargetBuilding.DestroyType == BuildingDestroyType.ByCollapseAnimation)
         {
             TargetBuilding.PlayCollapseAnimation(Dir, 10);
         }
         else if (TargetBuilding.DestroyType == BuildingDestroyType.ByModelReplace)
         {
             TargetBuilding.ShowCollapseModel();
         }
     }
 }
예제 #3
0
 // Methods
 public bool ContainsNamespace(NamespaceCacheElement ncElem)
 {
     return(_ncChildren != null && _ncChildren.ContainsKey(ncElem.Name));
 }