Skip to content

CommunitySchema

Namespace Nfty.Core.Publish.Community in assembly Nfty.Core.

public static class CommunitySchema

The community gallery's schema range. Same contract as the archive manifests: every field added after the floor is optional.

Fields

Current

public const int Current = 1;

The newest schema this build reads and writes.

Oldest

public const int Oldest = 1;

The oldest schema this build reads.

Methods

Require(int)

public static void Require(int version);

Refuses a version outside CommunitySchema.Oldest..CommunitySchema.Current by name, never misparsing it.

Parameters

  • version (int) - The declared schema version.

Exceptions