コード例 #1
0
ファイル: StructureMaster.cs プロジェクト: Virobeast2/RCLIENT
    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);
    }
コード例 #2
0
 public bool IsType(StructureComponent.StructureComponentType checkType)
 {
     return(this.type == checkType);
 }