GetLocations() public méthode

public GetLocations ( ) : List
Résultat List
        private string GetMapComment(Map Map)
        {
            String          Parent    = "";
            List <Location> Locations = World.GetLocations();

            foreach (Location Loc in Locations)
            {
                foreach (Map LocMap in Loc.Maps)
                {
                    if (LocMap.Pid == Map.Pid)
                    {
                        Parent = Loc.Name + "(" + Loc.Pid + ")";
                    }
                }
            }

            return(Map.FileName + ", " +
                   (!String.IsNullOrEmpty(Map.ScriptName) ? Map.ScriptName + ", " : "") +
                   Parent);
        }
Exemple #2
0
 private void addLocationToolStripMenuItem_Click(object sender, EventArgs e)
 {
     AddLocation.Locations = worldmap.GetLocations();
     AddLocation.ShowDialog();
 }