comparison src/th06/ecl.rs @ 716:5016c09e5d7c

Fix some warnings.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 23 Sep 2019 13:49:07 +0200
parents fcc8f736c746
children 414f8611f344
comparison
equal deleted inserted replaced
715:2b2376811f46 716:5016c09e5d7c
282 93 => fn SetSpellcard(face: i16, number: i16, name: String), 282 93 => fn SetSpellcard(face: i16, number: i16, name: String),
283 94 => fn EndSpellcard(), 283 94 => fn EndSpellcard(),
284 95 => fn SpawnEnemy(sub: i32, x: f32, y: f32, z: f32, life: i16, bonus_dropped: i16, die_score: i32), 284 95 => fn SpawnEnemy(sub: i32, x: f32, y: f32, z: f32, life: i16, bonus_dropped: i16, die_score: i32),
285 96 => fn KillAllEnemies(), 285 96 => fn KillAllEnemies(),
286 97 => fn SetAnim(script: i32), 286 97 => fn SetAnim(script: i32),
287 98 => fn SetMultipleAnims(default: i16, end_left: i16, end_right: i16, left: i16, right: i16, UNUSED: i16), 287 98 => fn SetMultipleAnims(default: i16, end_left: i16, end_right: i16, left: i16, right: i16, _unused: i16),
288 99 => fn SetAuxAnm(number: i32, script: i32), 288 99 => fn SetAuxAnm(number: i32, script: i32),
289 100 => fn SetDeathAnim(sprite_index: i32), 289 100 => fn SetDeathAnim(sprite_index: i32),
290 101 => fn SetBossMode(value: i32), 290 101 => fn SetBossMode(value: i32),
291 102 => fn CreateSquares(UNK1: i32, UNK2: f32, UNK3: f32, UNK4: f32, UNK5: f32), 291 102 => fn CreateSquares(UNK1: i32, UNK2: f32, UNK3: f32, UNK4: f32, UNK5: f32),
292 103 => fn SetHitbox(width: f32, height: f32, depth: f32), 292 103 => fn SetHitbox(width: f32, height: f32, depth: f32),
312 124 => fn DropSpecificBonus(type_: i32), 312 124 => fn DropSpecificBonus(type_: i32),
313 // TODO: Found in stage 3. 313 // TODO: Found in stage 3.
314 125 => fn UNK_ins125(), 314 125 => fn UNK_ins125(),
315 126 => fn SetRemainingLives(lives: i32), 315 126 => fn SetRemainingLives(lives: i32),
316 // TODO: Found in stage 4. 316 // TODO: Found in stage 4.
317 127 => fn UNK_ins127(TODO: i32), 317 127 => fn UNK_ins127(UNK1: i32),
318 128 => fn Interrupt(event: i32), 318 128 => fn Interrupt(event: i32),
319 129 => fn InterruptAux(number: i32, event: i32), 319 129 => fn InterruptAux(number: i32, event: i32),
320 // TODO: Found in stage 4. 320 // TODO: Found in stage 4.
321 130 => fn UNK_ins130(TODO: i32), 321 130 => fn UNK_ins130(UNK1: i32),
322 131 => fn SetDifficultyCoeffs(speed_a: f32, speed_b: f32, nb_a: i32, nb_b: i32, shots_a: i32, shots_b: i32), 322 131 => fn SetDifficultyCoeffs(speed_a: f32, speed_b: f32, nb_a: i32, nb_b: i32, shots_a: i32, shots_b: i32),
323 132 => fn SetInvisible(invisible: i32), 323 132 => fn SetInvisible(invisible: i32),
324 133 => fn CopyCallbacks(), 324 133 => fn CopyCallbacks(),
325 // TODO: Found in stage 4. 325 // TODO: Found in stage 4.
326 134 => fn UNK_ins134(), 326 134 => fn UNK_ins134(),
327 135 => fn EnableSpellcardBonus(UNKNOW: i32), 327 135 => fn EnableSpellcardBonus(UNK1: i32),
328 } 328 }
329 329
330 fn parse_sub_instruction(input: &[u8]) -> IResult<&[u8], CallSub> { 330 fn parse_sub_instruction(input: &[u8]) -> IResult<&[u8], CallSub> {
331 let i = &input[..]; 331 let i = &input[..];
332 let (i, (time, opcode)) = tuple((le_i32, le_u16))(i)?; 332 let (i, (time, opcode)) = tuple((le_i32, le_u16))(i)?;