Esempio n. 1
0
        //public int CornerDistance { get; set;}

        public Passage(Section section1, Section section2)
        {
            //検索めんどくなるのでID小さいほうが必ずfrom
            this.From = section1.ID < section2.ID ? section1 : section2;
            this.To   = section1.ID < section2.ID ? section2 : section1;
            //Roomがなければ中継点を生成
            if (From.Room == null)
            {
                From.CreateRelayPoint();
            }
            if (To.Room == null)
            {
                To.CreateRelayPoint();
            }
        }