Updated branding
This commit is contained in:
parent
b878e030e5
commit
f31a9e983d
@ -6,7 +6,7 @@ import { MyCustomLauncherCallbacks } from "./MyCustomLauncherCallbacks";
|
|||||||
class Mod implements IPreSptLoadMod
|
class Mod implements IPreSptLoadMod
|
||||||
{
|
{
|
||||||
// This example will show you how to override and register your own components and use them
|
// 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.
|
// you own custom implementations the server will then use.
|
||||||
// In this example we will take the LauncherCallbacks class and override the ping() method
|
// 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!"
|
// for our own custom method that will return "Lets dance" instead of "pong!"
|
||||||
|
@ -4,11 +4,11 @@ import { ISptCommand } from "@spt/helpers/Dialogue/Commando/SptCommands/ISptComm
|
|||||||
import { ItemHelper } from "@spt/helpers/ItemHelper";
|
import { ItemHelper } from "@spt/helpers/ItemHelper";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
import { ISendMessageRequest } from "@spt/models/eft/dialog/ISendMessageRequest";
|
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!
|
// \/ dont forger this annotation here!
|
||||||
@injectable()
|
@injectable()
|
||||||
export class CustomAkiCommand implements ISptCommand
|
export class CustomSptCommand implements ISptCommand
|
||||||
{
|
{
|
||||||
constructor(
|
constructor(
|
||||||
@inject("ItemHelper") protected itemHelper: ItemHelper,
|
@inject("ItemHelper") protected itemHelper: ItemHelper,
|
@ -2,13 +2,13 @@ import { DependencyContainer } from "tsyringe";
|
|||||||
|
|
||||||
import { IPostDBLoadMod } from "@spt/models/external/IPostDBLoadMod";
|
import { IPostDBLoadMod } from "@spt/models/external/IPostDBLoadMod";
|
||||||
import { SptCommandoCommands } from "@spt/helpers/Dialogue/Commando/SptCommandoCommands";
|
import { SptCommandoCommands } from "@spt/helpers/Dialogue/Commando/SptCommandoCommands";
|
||||||
import { CustomAkiCommand } from "./CustomAkiCommand";
|
import { CustomSptCommand } from "./CustomSptCommand";
|
||||||
|
|
||||||
class Mod implements IPostDBLoadMod {
|
class Mod implements IPostDBLoadMod {
|
||||||
public postDBLoad(container: DependencyContainer): void {
|
public postDBLoad(container: DependencyContainer): void {
|
||||||
// We register and re-resolve the dependency so the container takes care of filling in the command dependencies
|
// We register and re-resolve the dependency so the container takes care of filling in the command dependencies
|
||||||
container.register<CustomAkiCommand>("CustomAkiCommand", CustomAkiCommand);
|
container.register<CustomSptCommand>("CustomSptCommand", CustomSptCommand);
|
||||||
container.resolve<SptCommandoCommands>("SptCommandoCommands").registerSptCommandoCommand(container.resolve<CustomAkiCommand>("CustomAkiCommand"));
|
container.resolve<SptCommandoCommands>("SptCommandoCommands").registerSptCommandoCommand(container.resolve<CustomSptCommand>("CustomSptCommand"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user