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(); } } }
// Methods public bool ContainsNamespace(NamespaceCacheElement ncElem) { return(_ncChildren != null && _ncChildren.ContainsKey(ncElem.Name)); }