Example #1
0
        public static States GetDefaultInteractableStates()
        {
            States result = CreateInstance <States>();

            InteractableStates allInteractableStates = new InteractableStates();

            result.StateType    = Type.GetType(typeof(InteractableStates).AssemblyQualifiedName);
            result.StateOptions = InteractableTypeFinder.Find(candidateStateTypes, TypeRestriction.AllowBase);
            result.StateList    = allInteractableStates.GetDefaultStates();
            result.DefaultIndex = 0;
            return(result);
        }
Example #2
0
 /// <summary>
 /// Get the recieverBase types that contain event logic
 /// </summary>
 public static InteractableTypesContainer GetEventTypes()
 {
     return(InteractableTypeFinder.Find(candidateEventTypes, TypeRestriction.DerivedOnly));
 }
Example #3
0
 public void SetupStateOptions()
 {
     StateOptions = InteractableTypeFinder.Find(candidateStateTypes, TypeRestriction.AllowBase);
 }