-
Notifications
You must be signed in to change notification settings - Fork 103
Wipe parsing #1053
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Wipe parsing #1053
Changes from all commits
4c4e803
ea2f04d
ae90a8a
78431cd
856e02c
95083bb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| using System; | ||
|
|
||
| namespace Celeste.Mod.Entities; | ||
|
|
||
| /// <summary> | ||
| /// Mark this renderer as a custom <see cref="ScreenWipe"/> with an identifier. | ||
| /// <br/> | ||
| /// This Screen Wipe will be applied if the map's Wipe metadata has a matching value. | ||
| /// <br/> | ||
| /// If there is no match, then the full type name of the Screen Wipe is checked for. | ||
| /// </summary> | ||
| [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)] | ||
| public class CustomWipeAttribute : Attribute { | ||
|
|
||
| /// <summary> | ||
| /// A list of unique identifiers for this Screen Wipe.<br/> | ||
| /// Follows the pattern "ID [= LoadMethodName]". | ||
| /// </summary> | ||
| public string[] IDs; | ||
|
|
||
| /// <summary> | ||
| /// Mark this renderer as a custom <see cref="ScreenWipe"/> with an identifier.<br/> | ||
| /// If there is no match, then the full type name of the Screen Wipe is checked for. | ||
| /// </summary> | ||
| /// <param name="ids"> | ||
| /// A list of unique identifiers for this Screen Wipe.<br/> | ||
| /// Follows the pattern "ID [= LoadMethodName]". | ||
| /// </param> | ||
| public CustomWipeAttribute(params string[] ids) { | ||
| IDs = ids; | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,6 +14,8 @@ | |
| namespace Celeste { | ||
| public class patch_AreaData : AreaData { | ||
|
|
||
| public static readonly Dictionary<string, Action<Scene, bool, Action>> WipeLoaders = new(); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion: can the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. may just be my experience, but getting an |
||
|
|
||
| #pragma warning disable CS0108 // Hides inherited member | ||
|
|
||
| // Required to reference this class in other files | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.