SDT0101: Missing Entry Point

Property Value
Rule ID SDT0401
Title Missing Entry Point
Category Core
Severity Error

Cause

The master assembly is missing the entry point Game.OnInit(AppLoadContext)

Rule Description

The game requires an entry point to start running the game. Without this, the game will fail to initialise.

How to Fix Violations

Add an entry point class Game and method static void OnInit(AppLoadContext);

Fix:


using SDT4.Managed.Core;

static class Game 
{
    static void OnInit(AppLoadContext appLoadContext) 
    {
        // use appLoadContext
    }
}

When to Suppress Warnings

Danger

Do not suppress this error. Without an entry point, the game will fail to initialise in preview builds and standalone builds.