Click or drag to resize

GameData Class

The ScriptableObject holding the saved spell data and the trained network.
Inheritance Hierarchy
SystemObject
  Object
    ScriptableObject
      RavingBots.MagicGestures.GameGameData

Namespace:  RavingBots.MagicGestures.Game
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public class GameData : ScriptableObject

The GameData type exposes the following members.

Constructors
  NameDescription
Public methodGameData
Initializes a new instance of the GameData class
Top
Methods
  NameDescription
Public methodClear
Reset the saved data.
Public methodSave
Mark this asset as dirty and trigger a save.
Top
Fields
  NameDescription
Public fieldMLP
The trained neural network instance.
Public fieldSpells
The configured spells.
Top
Remarks
An instance of this object is saved as an asset so that spells can be pretrained and then shipped with the game. The current implementation is only capable of saving spells trained inside of an editor session.
See Also