// Token: 0x06003D99 RID: 15769 RVA: 0x000DD220 File Offset: 0x000DB420 public global::StructureComponent CompByLocal(Vector3 localPos, global::StructureComponent.StructureComponentType type) { global::StructureComponentKey key = new global::StructureComponentKey(localPos); global::StructureMaster.CompPosNode compPosNode; if (this._structureComponentsByPosition.TryGetValue(key, out compPosNode)) { return(compPosNode.GetType(type)); } return(null); }
// Token: 0x06003D97 RID: 15767 RVA: 0x000DD184 File Offset: 0x000DB384 public bool RemoveCompPositionEntry(global::StructureComponent comp) { Vector3 v = this.LocalIndexRound(base.transform.InverseTransformPoint(comp.transform.position)); global::StructureComponentKey key = new global::StructureComponentKey(v); global::StructureMaster.CompPosNode compPosNode; if (this._structureComponentsByPosition.TryGetValue(key, out compPosNode)) { compPosNode.Remove(comp); if (compPosNode.GetAny()) { this._structureComponentsByPosition.Remove(key); } return(true); } return(false); }
// Token: 0x06003D96 RID: 15766 RVA: 0x000DD118 File Offset: 0x000DB318 public bool AddCompPositionEntry(global::StructureComponent comp) { Vector3 v = this.LocalIndexRound(base.transform.InverseTransformPoint(comp.transform.position)); global::StructureComponentKey key = new global::StructureComponentKey(v); global::StructureMaster.CompPosNode compPosNode; if (this._structureComponentsByPosition.TryGetValue(key, out compPosNode)) { compPosNode.Add(comp); } else { compPosNode = new global::StructureMaster.CompPosNode(); compPosNode.Add(comp); this._structureComponentsByPosition.Add(key, compPosNode); } return(true); }