예제 #1
0
            public void AddSHTCouple(Map map, int x1, int y1, int z1, int x2, int y2, int z2)
            {
                SHTeleporter tele1 = AddSHT(map, x1, y1, z1);
                SHTeleporter tele2 = AddSHT(map, x2, y2, z2);

                if (tele1 != null)
                {
                    tele1.Delete();
                }
                if (tele2 != null)
                {
                    tele2.Delete();
                }
            }
예제 #2
0
            /*public static void Link(SHTeleporter tele1, SHTeleporter tele2)
             * {
             * tele1.ChangeDest(tele2);
             * tele2.ChangeDest(tele1);
             * }*/
            public void AddSHTCouple(Map map, bool ext1, int x1, int y1, int z1, bool ext2, int x2, int y2, int z2)
            {
                SHTeleporter tele1 = AddSHT(map, ext1, x1, y1, z1);
                SHTeleporter tele2 = AddSHT(map, ext2, x2, y2, z2);

                if (tele1 != null)
                {
                    tele1.Delete();
                }
                if (tele2 != null)
                {
                    tele2.Delete();
                }
                //Link(tele1, tele2);
            }