7 days to die tutorial

broken image
broken image

That keyword indicates that the base class, BlockPowered, has those functions, and that three08 wants to make changes to those. If you look above, you can see some calls with the keyword ' override ', such as 'OnBlockActivated', and 'OnBLockEntityTransformBeforeActivated'.

broken image
broken image

By making a derived class, three08 is saying 'I want to do everything that the BlockPowered class does, but I want to make changes to some things'.

broken image

The 'public class BlockNeonSign : BlockPowered' is the key part we are looking at.īlockNeonSign is three08's class that he wrote, and is called a derived class.īlockPowered is the base class, which means it's actual code in in the base game.īecause BlockNeonSign is derived from the BlockPowered class, it has all the abilities of the base class of BlockPowered. Public class BlockNeonSign : BlockPowered