コード例 #1
0
 public static void Init()
 {
     RoomInfo.Init();
     RoomGfxPal.Init();
     RoomPal.Init();
     RoomSprites.Init();
 }
コード例 #2
0
 public static void Init()
 {
     Rom.Seek(Address);
     for (int i = 0; i < Num; i++)
     {
         var rgp = new RoomGfxPal();
         rgp.index = i;
         for (int j = 0; j < Length; j++)
         {
             rgp.Data[j] = Rom.ReadByte();
         }
         RoomGfxPalEntries[i] = rgp;
     }
 }
コード例 #3
0
 public static byte[][] GetTilesets(RoomGfxPal rGfxPal)
 {
     byte[][] gfx = new byte[12][];
     for (int i = 0; i < 12; i++)
     {
         ushort ch = rGfxPal.GetGfxIndex(i);
         if (ch < (Num * 3))
         {
             gfx[i] = RoomGfx.GetGfx(rGfxPal.GetGfxIndex(i));
         }
         else
         {
             gfx[i] = null;
         }
     }
     return(gfx);
 }
コード例 #4
0
ファイル: MapData.cs プロジェクト: jeffman/MOTHER-3-Funland
 public static void Init()
 {
     Rom.Seek(Address);
     for (int i = 0; i < Num; i++)
     {
         var rgp = new RoomGfxPal();
         rgp.index = i;
         for (int j = 0; j < Length; j++)
             rgp.Data[j] = Rom.ReadByte();
         RoomGfxPalEntries[i] = rgp;
     }
 }
コード例 #5
0
ファイル: MapData.cs プロジェクト: jeffman/MOTHER-3-Funland
 public static byte[][] GetTilesets(RoomGfxPal rGfxPal)
 {
     byte[][] gfx = new byte[12][];
     for (int i = 0; i < 12; i++)
     {
         ushort ch = rGfxPal.GetGfxIndex(i);
         if (ch < (Num * 3))
             gfx[i] = RoomGfx.GetGfx(rGfxPal.GetGfxIndex(i));
         else
             gfx[i] = null;
     }
     return gfx;
 }