GetLocations() public method

public GetLocations ( ) : List
return List
コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: frmMain.cs プロジェクト: Venseer/tools
 private void addLocationToolStripMenuItem_Click(object sender, EventArgs e)
 {
     AddLocation.Locations = worldmap.GetLocations();
     AddLocation.ShowDialog();
 }