Grail (C#)  1.2.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
Grail.SimulatedGames.DecisionTree.IDecisionBinarySerializer< TDecisionType > Class Template Referenceabstract

A class that defines objects that can serialize decisions (e.g., actions in SimplifiedGame) to a binary format. More...

Public Member Functions

abstract void Serialize (TDecisionType decision, BinaryWriter writer)
 Writes a binary serialization of a decision using the writer. More...
 
abstract TDecisionType Deserialize (BinaryReader reader)
 Deserializes a decision to exactly the same form as is serialized using the Serialize() method. More...
 

Detailed Description

A class that defines objects that can serialize decisions (e.g., actions in SimplifiedGame) to a binary format.

Member Function Documentation

◆ Deserialize()

abstract TDecisionType Grail.SimulatedGames.DecisionTree.IDecisionBinarySerializer< TDecisionType >.Deserialize ( BinaryReader  reader)
pure virtual

Deserializes a decision to exactly the same form as is serialized using the Serialize() method.

◆ Serialize()

abstract void Grail.SimulatedGames.DecisionTree.IDecisionBinarySerializer< TDecisionType >.Serialize ( TDecisionType  decision,
BinaryWriter  writer 
)
pure virtual

Writes a binary serialization of a decision using the writer.


The documentation for this class was generated from the following file: