Skip to content

Commit

Permalink
chore(common): core to common (again...)
Browse files Browse the repository at this point in the history
  • Loading branch information
phinner committed Mar 27, 2024
1 parent b55b814 commit 86d036b
Show file tree
Hide file tree
Showing 69 changed files with 115 additions and 115 deletions.
2 changes: 1 addition & 1 deletion distributor-command-cloud/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

dependencies {
compileOnly(projects.distributorCore)
compileOnly(projects.distributorCommon)
api(libs.cloud.core)
compileOnly(libs.bundles.mindustry)
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
import com.xpdustry.distributor.command.cloud.parser.content.UnitParser;
import com.xpdustry.distributor.command.cloud.parser.content.WeatherParser;
import com.xpdustry.distributor.command.cloud.specifier.AllTeams;
import com.xpdustry.distributor.core.DistributorProvider;
import com.xpdustry.distributor.core.command.CommandSender;
import com.xpdustry.distributor.core.plugin.MindustryPlugin;
import com.xpdustry.distributor.core.plugin.PluginAware;
import com.xpdustry.distributor.common.DistributorProvider;
import com.xpdustry.distributor.common.command.CommandSender;
import com.xpdustry.distributor.common.plugin.MindustryPlugin;
import com.xpdustry.distributor.common.plugin.PluginAware;
import io.leangen.geantyref.TypeToken;
import java.text.MessageFormat;
import mindustry.game.Team;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

import arc.struct.ObjectMap;
import arc.util.CommandHandler;
import com.xpdustry.distributor.core.collection.ArcCollections;
import com.xpdustry.distributor.common.collection.ArcCollections;
import java.lang.reflect.Field;
import java.util.HashSet;
import java.util.Set;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
package com.xpdustry.distributor.command.cloud;

import arc.util.CommandHandler;
import com.xpdustry.distributor.core.command.CommandDescription;
import com.xpdustry.distributor.core.command.CommandElement;
import com.xpdustry.distributor.core.command.CommandFacade;
import com.xpdustry.distributor.core.command.CommandHelp;
import com.xpdustry.distributor.core.command.CommandSender;
import com.xpdustry.distributor.core.plugin.MindustryPlugin;
import com.xpdustry.distributor.common.command.CommandDescription;
import com.xpdustry.distributor.common.command.CommandElement;
import com.xpdustry.distributor.common.command.CommandFacade;
import com.xpdustry.distributor.common.command.CommandHelp;
import com.xpdustry.distributor.common.command.CommandSender;
import com.xpdustry.distributor.common.plugin.MindustryPlugin;
import java.util.ArrayList;
import java.util.List;
import mindustry.gen.Player;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
package com.xpdustry.distributor.command.cloud.parser;

import arc.util.Strings;
import com.xpdustry.distributor.core.collection.ArcCollections;
import com.xpdustry.distributor.core.player.MUUID;
import com.xpdustry.distributor.common.collection.ArcCollections;
import com.xpdustry.distributor.common.player.MUUID;
import java.text.Normalizer;
import java.util.ArrayList;
import java.util.Collection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

import arc.Core;
import com.xpdustry.distributor.command.cloud.ArcCommandContextKeys;
import com.xpdustry.distributor.core.collection.ArcCollections;
import com.xpdustry.distributor.common.collection.ArcCollections;
import java.util.concurrent.CompletableFuture;
import mindustry.gen.Groups;
import mindustry.gen.Player;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ plugins {
}

distributorModule {
identifier = "distributor-core"
display = "DistributorCore"
main = "com.xpdustry.distributor.core.DistributorCorePlugin"
identifier = "distributor-common"
display = "DistributorCommon"
main = "com.xpdustry.distributor.common.DistributorCommonPlugin"
description = "Core classes of distributor."
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.xpdustry.distributor.core;
package com.xpdustry.distributor.common;

import com.xpdustry.distributor.core.command.CommandFacade;
import com.xpdustry.distributor.core.localization.MultiLocalizationSource;
import com.xpdustry.distributor.core.permission.PermissionManager;
import com.xpdustry.distributor.core.service.ServiceManager;
import com.xpdustry.distributor.common.command.CommandFacade;
import com.xpdustry.distributor.common.localization.MultiLocalizationSource;
import com.xpdustry.distributor.common.permission.PermissionManager;
import com.xpdustry.distributor.common.service.ServiceManager;

public interface Distributor {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.xpdustry.distributor.core;
package com.xpdustry.distributor.common;

import com.xpdustry.distributor.core.command.CommandFacade;
import com.xpdustry.distributor.core.localization.MultiLocalizationSource;
import com.xpdustry.distributor.core.permission.PermissionManager;
import com.xpdustry.distributor.core.plugin.AbstractMindustryPlugin;
import com.xpdustry.distributor.core.service.ServiceManager;
import com.xpdustry.distributor.core.util.Priority;
import com.xpdustry.distributor.common.command.CommandFacade;
import com.xpdustry.distributor.common.localization.MultiLocalizationSource;
import com.xpdustry.distributor.common.permission.PermissionManager;
import com.xpdustry.distributor.common.plugin.AbstractMindustryPlugin;
import com.xpdustry.distributor.common.service.ServiceManager;
import com.xpdustry.distributor.common.util.Priority;
import java.util.Objects;
import org.jspecify.annotations.Nullable;

public final class DistributorCorePlugin extends AbstractMindustryPlugin implements Distributor {
public final class DistributorCommonPlugin extends AbstractMindustryPlugin implements Distributor {

private final ServiceManager services = ServiceManager.simple();
private final MultiLocalizationSource source = MultiLocalizationSource.create();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.xpdustry.distributor.core;
package com.xpdustry.distributor.common;

/**
* This exception is thrown when the distributor fails to initialize.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.xpdustry.distributor.core;
package com.xpdustry.distributor.common;

import org.jspecify.annotations.Nullable;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.xpdustry.distributor.core.annotation;
package com.xpdustry.distributor.common.annotation;

import com.xpdustry.distributor.core.scheduler.Cancellable;
import com.xpdustry.distributor.core.scheduler.MindustryTimeUnit;
import com.xpdustry.distributor.core.scheduler.PluginScheduler;
import com.xpdustry.distributor.common.scheduler.Cancellable;
import com.xpdustry.distributor.common.scheduler.MindustryTimeUnit;
import com.xpdustry.distributor.common.scheduler.PluginScheduler;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.xpdustry.distributor.core.collection;
package com.xpdustry.distributor.common.collection;

import arc.struct.ObjectMap;
import arc.struct.ObjectSet;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.xpdustry.distributor.core.collection;
package com.xpdustry.distributor.common.collection;

import arc.struct.Seq;
import java.io.Serial;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.xpdustry.distributor.core.collection;
package com.xpdustry.distributor.common.collection;

import arc.struct.ObjectMap;
import java.io.Serial;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.xpdustry.distributor.core.collection;
package com.xpdustry.distributor.common.collection;

import arc.struct.ObjectSet;
import java.io.Serial;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@NullMarked
package com.xpdustry.distributor.core.collection;
package com.xpdustry.distributor.common.collection;

import org.jspecify.annotations.NullMarked;
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.xpdustry.distributor.core.command;
package com.xpdustry.distributor.common.command;

import arc.util.CommandHandler;
import com.xpdustry.distributor.core.plugin.MindustryPlugin;
import com.xpdustry.distributor.common.plugin.MindustryPlugin;
import java.util.List;
import org.jspecify.annotations.Nullable;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.xpdustry.distributor.core.command;
package com.xpdustry.distributor.common.command;

public interface CommandDescription {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.xpdustry.distributor.core.command;
package com.xpdustry.distributor.common.command;

import com.xpdustry.distributor.core.internal.GeneratedDataClass;
import com.xpdustry.distributor.common.internal.GeneratedDataClass;
import java.util.Collection;
import org.immutables.value.Value;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.xpdustry.distributor.core.command;
package com.xpdustry.distributor.common.command;

import arc.util.CommandHandler;
import com.xpdustry.distributor.core.plugin.MindustryPlugin;
import com.xpdustry.distributor.common.plugin.MindustryPlugin;
import org.jspecify.annotations.Nullable;

public interface CommandFacade {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.xpdustry.distributor.core.command;
package com.xpdustry.distributor.common.command;

import com.xpdustry.distributor.core.internal.GeneratedDataClass;
import com.xpdustry.distributor.common.internal.GeneratedDataClass;
import java.util.List;
import org.immutables.value.Value;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.xpdustry.distributor.core.command;
package com.xpdustry.distributor.common.command;

import java.util.Locale;
import mindustry.gen.Player;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.xpdustry.distributor.core.command;
package com.xpdustry.distributor.common.command;

import java.util.Locale;
import mindustry.gen.Player;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.xpdustry.distributor.core.command;
package com.xpdustry.distributor.common.command;

import arc.util.Log;
import java.util.Locale;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.xpdustry.distributor.core.command;
package com.xpdustry.distributor.common.command;

import arc.util.CommandHandler;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@NullMarked
package com.xpdustry.distributor.core.scheduler;
package com.xpdustry.distributor.common.command;

import org.jspecify.annotations.NullMarked;
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.xpdustry.distributor.core.internal;
package com.xpdustry.distributor.common.internal;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.xpdustry.distributor.core.localization;
package com.xpdustry.distributor.common.localization;

import java.text.MessageFormat;
import java.util.Locale;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.xpdustry.distributor.core.localization;
package com.xpdustry.distributor.common.localization;

import java.io.BufferedReader;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.xpdustry.distributor.core.localization;
package com.xpdustry.distributor.common.localization;

import java.text.MessageFormat;
import java.util.Locale;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.xpdustry.distributor.core.localization;
package com.xpdustry.distributor.common.localization;

/**
* A mutable localization source that delegates the localization lookup to other sources in FIFO order.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.xpdustry.distributor.core.localization;
package com.xpdustry.distributor.common.localization;

import java.text.MessageFormat;
import java.util.ArrayDeque;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.xpdustry.distributor.core.localization;
package com.xpdustry.distributor.common.localization;

import java.text.MessageFormat;
import java.util.Locale;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@NullMarked
package com.xpdustry.distributor.core;
package com.xpdustry.distributor.common;

import org.jspecify.annotations.NullMarked;
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.xpdustry.distributor.core.permission;
package com.xpdustry.distributor.common.permission;

import java.util.Collections;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.xpdustry.distributor.core.permission;
package com.xpdustry.distributor.common.permission;

import java.util.Map;

Expand Down
Loading

0 comments on commit 86d036b

Please sign in to comment.