public class Map
{
public static int current_map = 0;
public string bitmap_path;
public Bitmap bitmap;
public Map()
{
bitmap_path = "1.png";
}
public static void draw(Map[] map, Graphics g)
{
Map m = map[current_map];
g.DrawImage(m.bitmap, 0, 0);
}
}
调用是
Map.draw(map, g);
错误1当前上下文中不存在名称“map”
是要定义map吗怎么定义