Tilt Five Unity API  1.3.0
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
TiltFive.T5_Bool Struct Reference

Represents a boolean value. More...

Public Member Functions

 T5_Bool (bool boolean)
 

Static Public Member Functions

static implicit operator bool (T5_Bool t5_boolean)
 
static implicit operator T5_Bool (bool boolean)
 

Private Attributes

readonly byte booleanByte
 

Detailed Description

Represents a boolean value.

This struct exists primarily to guarantee a common memory layout when marshaling bool values to/from the native plugin.

Definition at line 140 of file NativePlugin.cs.

Constructor & Destructor Documentation

◆ T5_Bool()

TiltFive.T5_Bool.T5_Bool ( bool  boolean)

Definition at line 144 of file NativePlugin.cs.

145  {
146  booleanByte = Convert.ToByte(boolean);
147  }
readonly byte booleanByte

References TiltFive.T5_Bool.booleanByte.

Member Function Documentation

◆ operator bool()

static implicit TiltFive.T5_Bool.operator bool ( T5_Bool  t5_boolean)
static

◆ operator T5_Bool()

static implicit TiltFive.T5_Bool.operator T5_Bool ( bool  boolean)
static

Member Data Documentation

◆ booleanByte

readonly byte TiltFive.T5_Bool.booleanByte
private

Definition at line 142 of file NativePlugin.cs.

Referenced by TiltFive.T5_Bool.T5_Bool().


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