~~~~~~~~ How to use in your own projects ~~~~~~~~ Backpack ALL the custom blocks in the "structures library" sprite, or backpack the sprite itself. Then put the custom blocks into the sprite you want to use the library in. ~~~~~~~~~~~~ How to use the library ~~~~~~~~~~~~ To clear any unused structures use: delete all of [struct_structs v] delete all of [struct_properties v] Results of the previous operation is in the (struct_output) variable ### Creating a Structure ### 1) Use the "Create Structure" block to set everything up for the structure 2) To add properties (not values), use the "Add Property" block: --- Add Property (name) You can have as many of these as you like 3) When the structure is complete, use the "Register Structure ()" block, with the name for the structure ### Using a structure ### The block "Structure ()" returns a new structure (as long as it exists), with all the properties set to "null" ### Getting / Setting Properties ### Use the "get property () in ()" block to get the value of a property Setting the value is the same, except that you specify the new value
Inspired by the structure system in C Feel free to use, credit not necessary If you need a better example on how to use the library, there is an example in the backdrop Report any bugs in the comments and there will be a 95.44% chance i will fix it