示例#1
0
    public static void Configure()
    {
        Enabled = ServerConfiguration.GetSetting("factions.enabled", false);

        if (Enabled)
        {
            GenericPersistence.Register("Factions", Serialize, Deserialize);
        }
    }
示例#2
0
    // This does not do the actual work of creating faction stuff, only turns on the persistence.
    public static void Enable()
    {
        if (Enabled)
        {
            return;
        }

        GenericPersistence.Register("Factions", Serialize, Deserialize);
        Enabled = true;
        ServerConfiguration.SetSetting("factions.enabled", true);
    }
示例#3
0
 public static void Configure()
 {
     GenericPersistence.Register("StealableArtifacts", Serialize, Deserialize);
 }
示例#4
0
 public static void Configure()
 {
     GenericPersistence.Register("AchievementSystem", Serialize, Deserialize);
 }