Important
System in under develimponent is missing some key fetures
- Multy Item Data Contener
- Visual Multy Item Data Contener
- NetCode for picking up items and droping it
- needs a pr FlaxEngine/FlaxEngine#2591 with was not yet meged to engine
Allows to make anny 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 fallows this idea
Type | Role |
---|---|
Item | Single Item Data Contener |
Item::Data | Runtime item representacion |
Item::Attribute | Runtime item attribute representacion |
Item::Asset | Static item representacion |
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 wil couse 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