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); }
public void ChangeDest( SHTeleporter destAddon ) { if ( m_Changing ) return; m_Changing = true; if ( destAddon != null ) { m_UpTele.TeleDest = destAddon.UpTele; m_RightTele.TeleDest = destAddon.RightTele; m_DownTele.TeleDest = destAddon.DownTele; m_LeftTele.TeleDest = destAddon.LeftTele; } else { m_UpTele.TeleDest = null; m_RightTele.TeleDest = null; m_DownTele.TeleDest = null; m_LeftTele.TeleDest = null; } m_Changing = false; }
public static void Link( SHTeleporter tele1, SHTeleporter tele2 ) { tele1.ChangeDest( tele2 ); tele2.ChangeDest( tele1 ); }
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; }
public static void Link(SHTeleporter tele1, SHTeleporter tele2) { tele1.ChangeDest(tele2); tele2.ChangeDest(tele1); }