public StructureComponent CompByLocal(Vector3 localPos, StructureComponent.StructureComponentType type) { CompPosNode node; StructureComponentKey key = new StructureComponentKey(localPos); if (this._structureComponentsByPosition.TryGetValue(key, out node)) { return(node.GetType(type)); } return(null); }
public bool IsType(StructureComponent.StructureComponentType checkType) { return(this.type == checkType); }