StrangeIoC  0.6.0
The IoC/Binding Framework for Unity3D and C#
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Protected Member Functions | Properties | List of all members
strange.extensions.context.impl.ContextView Class Reference

The Root View of a Context hierarchy. More...

Inheritance diagram for strange.extensions.context.impl.ContextView:
strange.extensions.context.api.IContextView strange.extensions.mediation.api.IView

Protected Member Functions

virtual void OnDestroy ()
 When a ContextView is Destroyed, automatically removes the associated Context. More...
 

Properties

IContext context [get, set]
 
bool requiresContext [get, set]
 
bool registeredWithContext [get, set]
 
bool autoRegisterWithContext [get, set]
 
- Properties inherited from strange.extensions.context.api.IContextView
IContext context [get, set]
 Get and set the Context.
 
- Properties inherited from strange.extensions.mediation.api.IView
bool requiresContext [get, set]
 Indicates whether the View can work absent a context. More...
 
bool registeredWithContext [get, set]
 Indicates whether this View has been registered with a Context.
 
bool autoRegisterWithContext [get]
 Exposure to code of the registerWithContext (Inspector) boolean. If false, the View won't try to register.
 

Detailed Description

The Root View of a Context hierarchy.

Extend this class to create your AppRoot, then attach that MonoBehaviour to the GameObject at the very top of your display hierarchy.

The startup sequence looks like this:

void Awake()
{
    context = new MyContext(this, true);
    context.Start ();

Member Function Documentation

virtual void strange.extensions.context.impl.ContextView.OnDestroy ( )
inlineprotectedvirtual

When a ContextView is Destroyed, automatically removes the associated Context.


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