예제 #1
0
 private void AddTrajectory(BinaryData data, int addr, TrajectoryName name, ushort count)
 {
     if ((uint)addr > 0x80400000 && (uint)addr < 0x80410000)
     {
         data.Position = (uint)addr - 0x80400000 + 0x1200000;
         for (int i = 1, loopTo = count; i <= loopTo; i++)
         {
             var trajectory = new Trajectory();
             trajectory.Name = name;
             trajectory.Read(data, Conversions.ToUInteger(data.Position));
             Add(trajectory);
         }
     }
 }
예제 #2
0
        private string GetTextOfTrajectoryName(TrajectoryName name)
        {
            switch (name)
            {
            case TrajectoryName.KoopaTheQuick1:
                return("Koopa The Quick 1");

            case TrajectoryName.KoopaTheQuick2:
                return("Koopa The Quick 2");

            case TrajectoryName.RacingPenguin:
                return("Racing Penguin");

            case TrajectoryName.SnowmansBottom:
                return("Snowmans Bottom");

            case TrajectoryName.PlatformOnTracksBehavior_BParam2_00:
                return("Plattform On Tracks Behavior (B. Param 00)");

            case TrajectoryName.PlatformOnTracksBehavior_BParam2_01:
                return("Plattform On Tracks Behavior (B. Param 01)");

            case TrajectoryName.PlatformOnTracksBehavior_BParam2_02:
                return("Plattform On Tracks Behavior (B. Param 02)");

            case TrajectoryName.PlatformOnTracksBehavior_BParam2_03:
                return("Plattform On Tracks Behavior (B. Param 03)");

            case TrajectoryName.PlatformOnTracksBehavior_BParam2_04:
                return("Plattform On Tracks Behavior (B. Param 04)");

            case TrajectoryName.PlatformOnTracksBehavior_BParam2_05:
                return("Plattform On Tracks Behavior (B. Param 05)");

            case TrajectoryName.PlatformOnTracksBehavior_BParam2_06:
                return("Plattform On Tracks Behavior (B. Param 06)");

            case TrajectoryName.PlatformOnTracksBehavior_BParam2_07:
                return("Plattform On Tracks Behavior (B. Param 07)");

            case TrajectoryName.MetalBallsGenerators_BParam2_00:
                return("Metal Ball Generator (B. Param 00)");

            case TrajectoryName.MetalBallsGenerators_BParam2_01:
                return("Metal Ball Generator (B. Param 01)");

            case TrajectoryName.MetalBallsGenerators_BParam2_02:
                return("Metal Ball Generator (B. Param 02)");

            case TrajectoryName.MiniMetalBallGenerator_BParam2_03:
                return("Mini Metal Ball Generator (B. Param 03)");

            case TrajectoryName.MiniMetalBallGenerator_BParam2_04:
                return("Mini Metal Ball Generator (B. Param 04)");

            case TrajectoryName.MipsTheRabbit:
                return("Mips The Rabbit");

            default:
                return("");
            }
        }
예제 #3
0
 private void AddTrajectory(BinaryData data, int addr, TrajectoryName name)
 {
     AddTrajectory(data, addr, name, 1);
 }