Ejemplo n.º 1
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);
            }
Ejemplo n.º 2
0
            public SHTeleporter AddSHT(Map map, bool ext, int x, int y, int z)
            {
                Point3D      p    = new Point3D(x, y, z);
                SHTeleporter tele = FindSHTeleporter(map, p);

                if (tele != null)
                {
                    /*tele = new SHTeleporter(ext);
                     * tele.MoveToWorld(p, map);*/

                    m_Count++;
                }

                return(tele);
            }