コード例 #1
0
 public BoundedSpace(FaceTypes tag, Bounds b, Vector3 forward)
 {
     tags        = new BoundedSpaceTags(tag);
     this.bounds = b;
     neighbors   = new Dictionary <Vector3, BoundedSpace>();
     setForwardAndUp(forward, Vector3.forward);
 }
コード例 #2
0
ファイル: Edge.cs プロジェクト: Pylair/MeleeCombat
 public BaseShape()
 {
     vertices     = new List <Vector3>();
     neighbors    = new HashSet <BaseShape>();
     tag          = new BoundedSpaceTags(FaceTypes.IGNORE);
     groupMembers = new HashSet <BaseShape>();
 }
コード例 #3
0
        public override bool Equals(object obj)
        {
            BoundedSpaceTags other = obj as BoundedSpaceTags;

            if (other == null)
            {
                return(false);
            }
            return(this.GetHashCode().Equals(other.GetHashCode()));
        }
コード例 #4
0
ファイル: Edge.cs プロジェクト: Pylair/MeleeCombat
 public Edge(Vector3 p1, Vector3 p2, FaceTypes t) : this(p1, p2)
 {
     tag = new BoundedSpaceTags(t);
 }