コード例 #1
0
ファイル: Tileset.cs プロジェクト: jpmac26/LazyShell
 // Area
 public Tileset(Areas.Map areaMap, PaletteSet paletteSet)
 {
     this.Type     = TilesetType.Area;
     this.Width    = 16;
     this.Height   = 32;
     this.HeightL3 = 16;
     this.tileSize = 2;
     //
     this.areaMap    = areaMap;
     this.PaletteSet = paletteSet;
     InitializeGraphics();
     InitializeTilesetBytes();
     InitializeTilesetTiles();
     BuildTilesetTiles();
 }
コード例 #2
0
ファイル: IOArchitecture.cs プロジェクト: jpmac26/LazyShell
 // Constructor
 public IOArchitecture(string action, int index, Areas.Map areaMap, PaletteSet paletteSet, Tileset tileset, Tilemap tilemap, Areas.PrioritySet prioritySet)
 {
     this.action      = action;
     this.index       = index;
     this.areaMap     = areaMap;
     this.paletteSet  = paletteSet;
     this.tileset     = tileset;
     this.tilemap     = tilemap;
     this.prioritySet = prioritySet;
     InitializeComponent();
     if (action == "import")
     {
         groupBox1.Text = "Import the following elements from architecture file";
     }
     else
     {
         groupBox1.Text = "Export the following elements to architecture file";
     }
 }