Ctrl+K

Game

Declaration

public class Strawberry.Game

Runs a game using a game context in which the game is happening and a platform dependent game launcher.

Properties

GameContext

Gets the current Game Context

IGameContext GameContext { get }

Methods

Run

Runs the game

void Run(IGameContext context, IGameLauncher launcher)

Parameters:

Name Type Description
context Strawberry.Core.IGameContext The game context in which the actual game is happening
launcher Strawberry.IGameLauncher The launcher to be used to initialize the game.

Run

Runs the game

void Run(IGameContext context, IGameLauncher launcher, IFrameInfoProvider frameInfoProvider)

Parameters:

Name Type Description
context Strawberry.Core.IGameContext The game context in which the actual game is happening
launcher Strawberry.IGameLauncher The launcher to be used to initialize the game.
frameInfoProvider Strawberry.IFrameInfoProvider The frame info provider to be used to store frame information

Exceptions:

  • System.ArgumentNullException