Modification based on the Modification

Demo

Member
Member
Mar 3, 2016
108
14
18
28
Parts Unknown
Good afternoon - I want to collect a mini mod on this fashion - it will be necessary for the server capabilities - sets,grades and so on - the question is - is it possible in 1 dll module to do a lot of configuration files? say 1 cs file - initialization - and then gone - 1 file grades, 2 file sets?

I have tried to do this but get error - cannot load module

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ArizonaMods {
public class Init: Fougerite.Module {
public override string Name {
get {
return "Name";
}
}

public override string Author {
get {
return "Author";
}
}

public override string Description {
get {
return "Description";
}
}

public override Version Version {
get {
return new Version("1.0");
}
}

public override void Initialize() {
Fougerite.Hooks.OnCommand += Test.CommandHandler;
}

public override void DeInitialize() {
Fougerite.Hooks.OnCommand -= Test.CommandHandler;
}
}
}
using Fougerite;

namespace ArizonaMods {
abstract public class Test: Fougerite.Module {
public static void CommandHandler(Fougerite.Player player, string cmd, string[] args) {
if (cmd == "test") {
Server.GetServer().Broadcast("1244");
}
}
}
}
 
Last edited:

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
You can crate as many classes you wish but u cant make two classes inheriting Fougerite Module

Sent From My Samsung Galaxy S4
 

Demo

Member
Member
Mar 3, 2016
108
14
18
28
Parts Unknown
You can crate as many classes you wish but u cant make two classes inheriting Fougerite Module

Sent From My Samsung Galaxy S4
I've already got what you wanted - 1 class I initialize the module - the rest at the static all I need :)