Support multi backend items
This commit is contained in:
		
							parent
							
								
									14432ae200
								
							
						
					
					
						commit
						bcd835aca6
					
				
					 10 changed files with 276 additions and 121 deletions
				
			
		
							
								
								
									
										14
									
								
								item.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								item.h
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,14 @@ | |||
| #pragma once | ||||
| #include <stdint.h> | ||||
| 
 | ||||
| class Item | ||||
| { | ||||
| public: | ||||
|     static constexpr uint16_t MAX_NAME_LENGTH = 16; | ||||
|     bool lastValue = 0; | ||||
|     uint16_t id; | ||||
|     char name[MAX_NAME_LENGTH]=""; | ||||
|     uint8_t type = 0; | ||||
|      | ||||
|     void setName(const char * const name); | ||||
| }; | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue