Important
System in under development is missing some key features
- Multi Item Data Container
- Visual Multi Item Data Container
- NetCode for picking up items and dropping it
- needs FlaxEngine/FlaxEngine#2679 to be fixed
Allows to make any kind of item for any kind of game
Note
System has some custom net code.
Pulled a idea from Minecraft item system.
Minecraft has very interesting item system just by looking at attributes from user view
So this system follows this idea
Type | Role |
---|---|
Item | Single Item Data Container |
Item::Data | Runtime Item representation |
Item::Attribute | Runtime item attribute representation |
Item::Asset | Static item representation |
Important
Attributes can be any type
The internal data is stored as byte array max size is 127 bytes
Going past the 127 bytes limit will cause the bytes to chopp by the item system
- null - no data
- Bool - uses 1 byte
- Decimal - it can be a float or double depending on value uses 4 to 8 byte
- Text - a string with max size of 63 w_chars
- UnsindedInteger - any unsinded integer uses 1 to 8 byte
- Integer - any integer uses 1 to 8 byte
- Custom - a wild card data can be anything
Caution
Custom is unsafe because it is a wild card when using it make sure the name is unique and data size is known and don't trust the network replicated values
try to not push large blocks of data to attributes