A static class in Root.Township, ATT.TownshipServer.
Works out this build's feature set (PC or mobile) and checks whether a server's target feature set matches it.
Fields
2 private and internal fields
| Member | What it is |
|---|
private const int OldServerValue | The value old servers send, treated as PC. |
private static FeatureSetFlags? serverType | Backing field for FeatureSet. |
Properties
| Member | What it is |
|---|
static FeatureSetFlags FeatureSet { get; } | This build's feature set flags, worked out once and cached. |
Methods
| Member | What it is |
|---|
static FeatureSetFlags GetEditorServerType() | Throws in this build. |
static bool IsServerValid(int targetAsInt) | True if the server's feature set overlaps this build's. A value of 0 (old servers) counts as PC. |
1 private and internal method
| Member | What it is |
|---|
private static FeatureSetFlags GetServerType() | Mobile on Android, PC on Windows and Linux players. Throws on other platforms and in the editor. |