-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature]: Add support for DevLogin (#192)
- Loading branch information
1 parent
87633a9
commit 602139f
Showing
11 changed files
with
274 additions
and
12 deletions.
There are no files selected for viewing
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
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
47 changes: 47 additions & 0 deletions
47
...mon/src/main/groovy/net/neoforged/gradle/dsl/common/extensions/subsystems/DevLogin.groovy
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,47 @@ | ||
package net.neoforged.gradle.dsl.common.extensions.subsystems | ||
|
||
import groovy.transform.CompileStatic | ||
import net.minecraftforge.gdi.ConfigurableDSLElement | ||
import net.minecraftforge.gdi.annotations.DSLProperty | ||
import org.gradle.api.provider.Property | ||
import org.gradle.api.tasks.Input | ||
import org.gradle.api.tasks.Optional | ||
|
||
/** | ||
* Allows configuration of the dev login system. | ||
*/ | ||
@CompileStatic | ||
interface DevLogin extends ConfigurableDSLElement<DevLogin> { | ||
|
||
/** | ||
* @return Whether or not dev login is enabled on launch. | ||
*/ | ||
@Input | ||
@Optional | ||
@DSLProperty | ||
Property<Boolean> getEnabled(); | ||
|
||
/** | ||
* @return The main class to use when launching the game through dev login. | ||
*/ | ||
@Input | ||
@Optional | ||
@DSLProperty | ||
Property<String> getMainClass(); | ||
|
||
/** | ||
* @return The suffix for the configuration name to use when adding the dev login configuration. | ||
*/ | ||
@Input | ||
@Optional | ||
@DSLProperty | ||
Property<String> getConfigurationSuffix() | ||
|
||
/** | ||
* @return The default usage flag state for runs. This is by default false (meaning the dev login configuration is not used by default), setting this to true will make all clients use dev login by default. | ||
*/ | ||
@Input | ||
@Optional | ||
@DSLProperty | ||
Property<Boolean> getConventionForRun() | ||
} |
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
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
Oops, something went wrong.