-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MillionDance] Support multi-camera songs (#36)
- Loading branch information
Showing
12 changed files
with
366 additions
and
190 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
namespace OpenMLTD.MillionDance.Core { | ||
internal static class MltdAnimation { | ||
|
||
public const int MinMotion = 1; | ||
public const int MinDance = 1; | ||
|
||
public const int MaxMotion = 13; | ||
public const int MaxDance = 13; | ||
|
||
public const int MinFormation = 1; | ||
|
||
public const int MaxFormation = 39; | ||
|
||
public const int MinCamera = 1; | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/MillionDance/Entities/Internal/CameraAnimationSet`1.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using JetBrains.Annotations; | ||
using OpenMLTD.MillionDance.Core; | ||
using OpenMLTD.MillionDance.Core.IO; | ||
|
||
namespace OpenMLTD.MillionDance.Entities.Internal { | ||
internal sealed class CameraAnimationSet<T> : AnimationSet<T> { | ||
|
||
internal CameraAnimationSet(int cameraNumber, [CanBeNull] T @default, [CanBeNull] T another, [CanBeNull] T special, [CanBeNull] T gorgeous) | ||
: base(@default, another, special, gorgeous) { | ||
CameraNumber = cameraNumber; | ||
} | ||
|
||
/// <summary> | ||
/// Specified camera number (starting from 1). Can be <see cref="ResourceLoader.UnspecifiedCameraNumber"/> if not specified, or | ||
/// <see cref="ResourceLoader.InvalidCameraNumber"/> if specified camera is not found. | ||
/// </summary> | ||
/// <remarks> | ||
/// It can be checked against <see cref="MltdAnimation.MinCamera"/>. | ||
/// </remarks> | ||
public int CameraNumber { get; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using JetBrains.Annotations; | ||
using OpenMLTD.MillionDance.Core; | ||
using OpenMLTD.MillionDance.Core.IO; | ||
|
||
namespace OpenMLTD.MillionDance.Entities.Internal { | ||
internal sealed class DanceAnimationSet<T> : AnimationSet<T> { | ||
|
||
internal DanceAnimationSet(int suggestedPosition, [CanBeNull] T @default, [CanBeNull] T another, [CanBeNull] T special, [CanBeNull] T gorgeous) | ||
: base(@default, another, special, gorgeous) { | ||
SuggestedPosition = suggestedPosition; | ||
} | ||
|
||
/// <summary> | ||
/// Suggested dance position. Can be <see cref="ResourceLoader.InvalidDancePosition"/> if not set. | ||
/// </summary> | ||
/// <remarks> | ||
/// It can be checked against <see cref="MltdAnimation.MinDance"/> and <see cref="MltdAnimation.MaxDance"/>. | ||
/// </remarks> | ||
public int SuggestedPosition { get; } | ||
|
||
} | ||
} |
Oops, something went wrong.