Show / Hide Table of Contents

Class TestBrainSerializer

The test bot brain serializer.

Inheritance
object
ResourceHelper
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>
BrainSerializer<TestGameState, TestAutomatedBot, TestAction, TestBotBrain>
TestBrainSerializer
Implements
IBrainSerializer
ITitleResourceHelper
IResourceHelper
IMetadataAccess
Inherited Members
BrainSerializer<TestGameState, TestAutomatedBot, TestAction, TestBotBrain>.JsonConverters
BrainSerializer<TestGameState, TestAutomatedBot, TestAction, TestBotBrain>.DeserializeBrain(string)
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.DefaultBotBrainOutputFolder
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.Logger
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.Services
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.TitleOutputFolder
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.BotBrainFileExtension
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.BrainsFolder
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.BrainTemplatesFolderPath
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.BrainDefaultsFilePath
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.ParameterNames
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.BrainCoreAssembly
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.JsonConverters
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.BrainAssembly
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.Initialize()
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.GetTitleResourcePath(string)
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.IsReservedBrainFilename(string)
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.DeserializeBrain(string)
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.DeserializeBrainFile(string)
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.SerializeBrain(IBotBrain, bool)
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.LoadDefaultBrainParameters()
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.LoadBrain(string)
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.GetParameterMetadata(string)
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.RegisterBrainAssemblyTypes(Assembly)
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.GetJsonConverters<TBrain>()
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.LoadParameterMetadata()
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.WriteCoreResources()
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.WriteTitleResources()
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.GetBrainFilePath(string)
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.GetDefaultSerializerSettings(bool)
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.GetSerializerSettings(bool)
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.GetDeserializerSettings(bool)
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.LoadFileItem<T>(string, Func<string, T>, string)
BrainSerializerBase<TestGameState, TestAutomatedBot, TestAction>.LoadTemplates<T>(string, JsonSerializerSettings, Func<string, bool>)
ResourceHelper.DefaultParametersFilename
ResourceHelper.JsonFileExtension
ResourceHelper.BaseOutputFolder
ResourceHelper.GetParameters(Assembly, string, string)
ResourceHelper.GetResourcePath(string)
ResourceHelper.WriteResourcesToDisk(Assembly, string, string, Func<string, bool>)
ResourceHelper.WriteNewResourcesToDisk(Assembly, string, string)
ResourceHelper.SafeCombinePath(string, string)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.XboxStudios.BotBrain.Samples.ClassBased
Assembly: BotBrain.Samples.dll
Syntax
public class TestBrainSerializer : BrainSerializer<TestGameState, TestAutomatedBot, TestAction, TestBotBrain>, IBrainSerializer, ITitleResourceHelper, IResourceHelper, IMetadataAccess
Remarks

Initializes a new instance of the TestBrainSerializer class.

Constructors

View Source

TestBrainSerializer(IServiceProvider, ILogger<TestBrainSerializer>?)

The test bot brain serializer.

Declaration
public TestBrainSerializer(IServiceProvider services, ILogger<TestBrainSerializer>? logger = null)
Parameters
Type Name Description
IServiceProvider services

The service provider used for construction.

ILogger<TestBrainSerializer> logger

The logger to use.

Remarks

Initializes a new instance of the TestBrainSerializer class.

Properties

View Source

TitleOutputFolder

Gets the output folder for title resources.

Declaration
public override string TitleOutputFolder { get; }
Property Value
Type Description
string
Overrides
Microsoft.XboxStudios.BotBrain.Composition.BrainSerializerBase<Microsoft.XboxStudios.BotBrain.Samples.ClassBased.TestGameState, Microsoft.XboxStudios.BotBrain.Samples.ClassBased.TestAutomatedBot, Microsoft.XboxStudios.BotBrain.Samples.ClassBased.TestAction>.TitleOutputFolder

Methods

View Source

WriteTitleResources()

Writes the embedded bot brain title-specific resources to disk.

Declaration
protected override void WriteTitleResources()
Overrides
Microsoft.XboxStudios.BotBrain.Composition.BrainSerializerBase<Microsoft.XboxStudios.BotBrain.Samples.ClassBased.TestGameState, Microsoft.XboxStudios.BotBrain.Samples.ClassBased.TestAutomatedBot, Microsoft.XboxStudios.BotBrain.Samples.ClassBased.TestAction>.WriteTitleResources()

Implements

IBrainSerializer
ITitleResourceHelper
IResourceHelper
IMetadataAccess
  • View Source
In this article
Back to top Generated by DocFX