Click or drag to resize

SpellBookView Class

The spellbook view.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          RavingBots.MagicGestures.UI.ViewsView
            RavingBots.MagicGestures.UI.ViewsSpellBookView

Namespace:  RavingBots.MagicGestures.UI.Views
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public class SpellBookView : View

The SpellBookView type exposes the following members.

Constructors
  NameDescription
Public methodSpellBookView
Initializes a new instance of the SpellBookView class
Top
Properties
  NameDescription
Public propertySelectedSlot
The currently selected slot.
Public propertySpells
The array of known spells.
Public propertyValidSlots
Slots where IsValid is .
Top
Methods
  NameDescription
Protected methodAwake
Set the initial state.
(Overrides ViewAwake.)
Public methodCastSpell
Cast the recognized spell.
Private methodCreateSpellSlots
Create all of the slots.
Public methodGetTrainingData
Get the spell data from valid slots.
Public methodGoBack
Called when user presses the back button.
(Overrides ViewGoBack.)
Private methodMorphTrail
Morph the drawn gesture into the recognized shape.
Protected methodStart
Register the event handlers.
Private methodUpdateValidSlots
Update ValidSlots.
Top
Fields
  NameDescription
Private field_spellSlots
Created spell slots.
Protected fieldSlotHeight
The height of the spell slot grid.
Protected fieldSlotPrefab
The prefab for the spell slots.
Protected fieldSlotSpacing
Spacing between the slots in the grid.
Protected fieldSlotWidth
The width of the spell slot grid.
Top
See Also