Skip to content

Commit

Permalink
Added: Implemented global settings file
Browse files Browse the repository at this point in the history
  • Loading branch information
8vogt committed Dec 17, 2020
1 parent b50bf59 commit 6c1c3ca
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions SEWorldGenPlugin/ObjectBuilders/MyObjectBuilder_GlobalSettings.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using ProtoBuf;
using System;
using System.Collections.Generic;

namespace SEWorldGenPlugin.ObjectBuilders
{
Expand All @@ -9,12 +10,30 @@ public class MyObjectBuilder_GlobalSettings : MyAbstractConfigObjectBuilder
{
public MyObjectBuilder_GlobalSettings() : base()
{

}

[ProtoMember(1)]
public HashSet<string> MoonDefinitions = new HashSet<string>();

[ProtoMember(2)]
public HashSet<string> GasGiantDefinitions = new HashSet<string>();

[ProtoMember(3)]
public HashSet<string> BlacklistedPlanetDefinitions = new HashSet<string>();

[ProtoMember(4)]
public HashSet<string> MandatoryPlanetDefinitions = new HashSet<string>();

public override MyAbstractConfigObjectBuilder copy()
{
return new MyObjectBuilder_GlobalSettings();
var copy = new MyObjectBuilder_GlobalSettings();

copy.MoonDefinitions = MoonDefinitions;
copy.GasGiantDefinitions = GasGiantDefinitions;
copy.BlacklistedPlanetDefinitions = BlacklistedPlanetDefinitions;
copy.MandatoryPlanetDefinitions = MandatoryPlanetDefinitions;

return copy;
}

public override void Verify()
Expand Down

0 comments on commit 6c1c3ca

Please sign in to comment.