Table of Contents

Method IsAuthoringData

Namespace
GrindFest.Content.Editor
Assembly
GrindFest.dll

IsAuthoringData(Type)

True when the type, or anything it derives from, is authoring data.

Public so the content gates can ask the same question the declaration answers, instead of keeping a second copy of the rule that would drift.

Two tests, in order. GrindFest.Content.Editor.ContentDeclaration.BuildableDespiteFamily first, because it is the one exception a build proved — a family must not decide for an asset, which is the lesson the namespace test taught by being wrong. Then a name in GrindFest.Content.Editor.ContentDeclaration.NeverContentTypeNames, checked against the whole base-type chain so a project subclass is covered too.

public static bool IsAuthoringData(Type type)

Parameters

type Type

Returns

bool