Beispiel #1
0
 public bool saveToFile(byte[] romdata, int no)
 {
     romdata[DoorRecBaseOffset + 72 + no]  = (byte)objId;
     romdata[DoorRecBaseOffset + 96 + no]  = (byte)backId;
     romdata[DoorRecBaseOffset + 120 + no] = (byte)palId;
     romdata[DoorRecBaseOffset + 144 + no] = (byte)palId2;
     romdata[DoorRecBaseOffset + 168 + no] = (byte)palBlink;
     romdata[DoorRecBaseOffset + 0 + no]   = (byte)startLoc;
     romdata[DoorRecBaseOffset + 48 + no]  = (byte)scrX;
     romdata[DoorRecBaseOffset + 24 + no]  = (byte)scrY;
     romdata[DoorRecBaseOffset + 193 + no] = (byte)playerX;
     romdata[DoorRecBaseOffset + 217 + no] = (byte)playerY;
     GlobalsCad.reloadLevelParamsData();
     return(true);
 }
Beispiel #2
0
 public bool saveToFile(byte[] romdata, int no)
 {
     romdata[LevelRecBaseOffset + 60 + no]  = (byte)objId;
     romdata[LevelRecBaseOffset + 75 + no]  = (byte)backId;
     romdata[LevelRecBaseOffset + 90 + no]  = (byte)palId;
     romdata[LevelRecBaseOffset + 120 + no] = (byte)palId2;
     romdata[LevelRecBaseOffset + 135 + no] = (byte)palBlink;
     romdata[LevelRecBaseOffset + 45 + no]  = (byte)width;
     romdata[LevelRecBaseOffset + 30 + no]  = (byte)height;
     romdata[LevelRecBaseOffset + 15 + no]  = (byte)startLoc;
     romdata[LevelRecBaseOffset + 150 + no] = getLoByte(layoutAddr);
     romdata[LevelRecBaseOffset + 165 + no] = getHiByte(layoutAddr);
     romdata[LevelRecBaseOffset + 180 + no] = getLoByte(scrollAddr);
     romdata[LevelRecBaseOffset + 195 + no] = getHiByte(scrollAddr);
     romdata[LevelRecBaseOffset + 0 + no]   = (byte)bigBlockId;
     romdata[LevelRecBaseOffset + 105 + no] = (byte)musicNo;
     romdata[LevelRecDirOffset + 0 + no]    = getLoByte(dirsAddr);
     romdata[LevelRecDirOffset + 15 + no]   = getHiByte(dirsAddr);
     GlobalsCad.reloadLevelParamsData();
     return(true);
 }
Beispiel #3
0
 private void loadLevelData()
 {
     LevelData.LoadOffsetsFromConfig();
     DoorData.LoadOffsetsFromConfig();
     GlobalsCad.reloadLevelParamsData();
 }
Beispiel #4
0
 private void loadLevelData()
 {
     GlobalsCad.reloadLevelParamsData();
 }
Beispiel #5
0
 private void SelectDoorIndex_Load(object sender, EventArgs e)
 {
     GlobalsCad.reloadLevelParamsData();
     cbLevel.SelectedIndex = 0;
 }