Modding:Block System: Difference between revisions

From Vintage Story Wiki
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
To offer a large variety of looks and behaviors, while at the same time avoid code duplication, the VS engine offers a varied structures on how to organize block related code. Let's look through them on by one.
To offer a large variety of looks and behaviors, while at the same time allow writing of clean code, the VS engine offers a varied structures on how to organize block related code. Let's look through them on by one.
 
Both, the BlockBehavior and BlockEntityBehavior classes are helpful in implementing [https://en.wikipedia.org/wiki/Don%27t_repeat_yourself DRY] and [https://en.wikipedia.org/wiki/Separation_of_concerns SoC] coding principles.
 


== The Block Class ==
== The Block Class ==
Confirmedusers, Bureaucrats, editor, Administrators
1,778

edits