Skip to content
Kiame Vivacity edited this page Jun 1, 2018 · 4 revisions

Welcome to the ModSync RW wiki!

Instructions on adding a new Host

Hosts/HostEnum.cs

Add the new host here

Hosts/<new_host>.cs

Create a new file the inherits IHost. Consult the documentation in IHost for the details of each method and consult Hosts/Github.cs for an example of how each method can be implemented.

ModToSyncFactory.cs

CreateHost

In the if block, add an else if statement for the new mod

if (HostEnum.Github.ToString().Equals(nameAttr.Value))
{
    host = new GithubHost();
}
else if (HostEnum.<new_mod>.ToString().Equals(nameAttr.Value))
{
    host = new <new_mod>();
}
else
...

Clone this wiki locally