Translations:Modding:Code Tutorial Simple Block/34/en

From Vintage Story Wiki
Revision as of 15:25, 30 May 2024 by FuzzyBot (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

/*

  • 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> |}

VisualStudioListBlockMethodsFromOverride.png

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.