From f31a9e983d6fa65fb90b3c35fca3a88a5e1c9b9a Mon Sep 17 00:00:00 2001 From: Dev Date: Sun, 28 Jul 2024 18:26:30 +0100 Subject: [PATCH] Updated branding --- TypeScript/12ClassExtensionOverride/src/mod.ts | 2 +- .../src/{CustomAkiCommand.ts => CustomSptCommand.ts} | 4 ++-- TypeScript/22CustomAkiCommand/src/mod.ts | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) rename TypeScript/22CustomAkiCommand/src/{CustomAkiCommand.ts => CustomSptCommand.ts} (90%) diff --git a/TypeScript/12ClassExtensionOverride/src/mod.ts b/TypeScript/12ClassExtensionOverride/src/mod.ts index 567d6b5..383ee2f 100644 --- a/TypeScript/12ClassExtensionOverride/src/mod.ts +++ b/TypeScript/12ClassExtensionOverride/src/mod.ts @@ -6,7 +6,7 @@ import { MyCustomLauncherCallbacks } from "./MyCustomLauncherCallbacks"; class Mod implements IPreSptLoadMod { // This example will show you how to override and register your own components and use them - // The container will by default register all AKI dependencies, but you can inject into it + // The container will by default register all SPT dependencies, but you can inject into it // you own custom implementations the server will then use. // In this example we will take the LauncherCallbacks class and override the ping() method // for our own custom method that will return "Lets dance" instead of "pong!" diff --git a/TypeScript/22CustomAkiCommand/src/CustomAkiCommand.ts b/TypeScript/22CustomAkiCommand/src/CustomSptCommand.ts similarity index 90% rename from TypeScript/22CustomAkiCommand/src/CustomAkiCommand.ts rename to TypeScript/22CustomAkiCommand/src/CustomSptCommand.ts index 4fb4c69..2e01ae4 100644 --- a/TypeScript/22CustomAkiCommand/src/CustomAkiCommand.ts +++ b/TypeScript/22CustomAkiCommand/src/CustomSptCommand.ts @@ -4,11 +4,11 @@ import { ISptCommand } from "@spt/helpers/Dialogue/Commando/SptCommands/ISptComm import { ItemHelper } from "@spt/helpers/ItemHelper"; import { MailSendService } from "@spt/services/MailSendService"; import { ISendMessageRequest } from "@spt/models/eft/dialog/ISendMessageRequest"; -import { IUserDialogInfo } from "@spt/models/eft/profile/IAkiProfile"; +import { IUserDialogInfo } from "@spt/models/eft/profile/ISptProfile"; // \/ dont forger this annotation here! @injectable() -export class CustomAkiCommand implements ISptCommand +export class CustomSptCommand implements ISptCommand { constructor( @inject("ItemHelper") protected itemHelper: ItemHelper, diff --git a/TypeScript/22CustomAkiCommand/src/mod.ts b/TypeScript/22CustomAkiCommand/src/mod.ts index b48344a..001191f 100644 --- a/TypeScript/22CustomAkiCommand/src/mod.ts +++ b/TypeScript/22CustomAkiCommand/src/mod.ts @@ -2,13 +2,13 @@ import { DependencyContainer } from "tsyringe"; import { IPostDBLoadMod } from "@spt/models/external/IPostDBLoadMod"; import { SptCommandoCommands } from "@spt/helpers/Dialogue/Commando/SptCommandoCommands"; -import { CustomAkiCommand } from "./CustomAkiCommand"; +import { CustomSptCommand } from "./CustomSptCommand"; class Mod implements IPostDBLoadMod { public postDBLoad(container: DependencyContainer): void { // We register and re-resolve the dependency so the container takes care of filling in the command dependencies - container.register("CustomAkiCommand", CustomAkiCommand); - container.resolve("SptCommandoCommands").registerSptCommandoCommand(container.resolve("CustomAkiCommand")); + container.register("CustomSptCommand", CustomSptCommand); + container.resolve("SptCommandoCommands").registerSptCommandoCommand(container.resolve("CustomSptCommand")); } }