|
Pixels Plugin for Unity
Enable communications with Pixels dice using Bluetooth Low Energy.
|
Set of types for manipulating Pixel animation profiles data. More...
Classes | |
| class | ActionPlayAnimation |
| Action to play an animation. More... | |
| class | ActionPlayAudioClip |
| Action to play a sound! More... | |
| class | ConditionBatteryState |
| Condition that triggers on battery state events. More... | |
| class | ConditionConnectionState |
| Condition that triggers on connection events. More... | |
| class | ConditionCrooked |
| Condition that triggers when the Pixel has landed by is crooked. More... | |
| class | ConditionFaceCompare |
| Condition that triggers when the Pixel has landed on a face. More... | |
| class | ConditionHandling |
| Condition that triggers when the Pixel is being handled. More... | |
| class | ConditionHelloGoodbye |
| Condition that triggers on a life state event. More... | |
| class | ConditionIdle |
| Condition that triggers when the Pixel is being handled. More... | |
| class | ConditionRolling |
| Condition that triggers when the Pixel is being rolled. More... | |
| interface | IAction |
| Base interface for Actions. Stores the actual type so that we can cast the data to the proper derived type and access the parameters. More... | |
| interface | ICondition |
| The base struct for all conditions, stores a type identifier so we can tell the actual type of the condition and fetch the condition parameters correctly. More... | |
| class | Profile |
| A Pixel LED animation profile which is made of a list of rules. More... | |
| class | Rule |
| A profile's rule, with a condition and a list of actions. More... | |
Enumerations | |
| enum | ActionType : byte { None = 0 , PlayAnimation , PlayAudioClip } |
| Defines the supported types of actions. | |
| enum | ConditionType : byte { None = 0 , HelloGoodbye , Handling , Rolling , FaceCompare , Crooked , ConnectionState , BatteryState , Idle } |
| Defines the supported types of conditions. | |
| enum | FaceCompareFlags : byte { Less = 1 << 0 , Equal = 1 << 1 , Greater = 1 << 2 } |
| Flags used to indicate how we treat the face, whether we want to trigger if the value is greater than the parameter, less, or equal, or any combination. | |
| enum | HelloGoodbyeFlags : byte { Hello = 1 << 0 , Goodbye = 1 << 1 } |
| Indicate whether the condition should trigger on Hello, Goodbye or both. | |
| enum | ConnectionStateFlags : byte { Connected = 1 << 0 , Disconnected = 1 << 1 } |
| Indicates when the condition should trigger, connected!, disconnected! or both. | |
| enum | BatteryStateFlags : byte { Ok = 1 << 0 , Low = 1 << 1 , Charging = 1 << 2 , Done = 1 << 3 , BadCharging = 1 << 4 , Error = 1 << 5 } |
| Indicates which battery event the condition should trigger on. | |
Set of types for manipulating Pixel animation profiles data.