Game1CodeGenerator
Introduction
Creating a Game1CodeGenerator-Inheriting Class
public class ExampleGame1CodeGenerator : Game1CodeGenerator
{
public override void GenerateClassScope(ICodeBlock codeBlock)
{
codeBlock.Line("// add fields and properties here which should live in Game1");
}
public override void GenerateInitialize(ICodeBlock codeBlock)
{
codeBlock.Line("// add code here which should run when the game is initialized");
}
}Instantiating a Game1CodeGenerator
Last updated
Was this helpful?