Translations:Modding:Code Tutorial Simple Block/34/en
From Vintage Story Wiki
/*
- The namespace the class will be in. This is essentially the folder the script is found in.
- If you need to use the BlockTrampoline class in any other script, you will have to add 'using VSTutorial.Blocks' to that script.
- /
namespace VSTutorial.Blocks {
/* * The class definition. Here, you define BlockTrampoline as a child of Block, which * means you can 'override' many of the functions within the general Block class. */ internal class BlockTrampoline : Block { }
} </syntaxhighlight> |}
Click on the empty space, and type 'override ' (including the space). Visual Studio will show you a scrollable list of functions that can be overriden. If the menu closes, you can simply delete the space and replace it, and the menu will return.