MuGameFramework  1.0
MuGameFramework is a 2D game framework built upon C# and SFML
 All Classes Namespaces Files Functions Variables Enumerations Properties
MuGameFramework.GameServices Class Reference

Object that can hold global services for access anywhere in the code More...

Public Member Functions

 GameServices ()
 Initialize the GameServices
void AddService (object service)
 Add a service to the manager
GetService< T > ()
 Get a stored service from the manager
void RemoveService< T > ()
 Remove a stored service from the manager

Detailed Description

Object that can hold global services for access anywhere in the code

Constructor & Destructor Documentation

MuGameFramework.GameServices.GameServices ( )

Initialize the GameServices

Member Function Documentation

void MuGameFramework.GameServices.AddService ( object  service)

Add a service to the manager

Parameters
serviceService to add
T MuGameFramework.GameServices.GetService< T > ( )

Get a stored service from the manager

Template Parameters
TType of service we are getting
Returns
Service asked for
void MuGameFramework.GameServices.RemoveService< T > ( )

Remove a stored service from the manager

Template Parameters
TType of service we are removing

The documentation for this class was generated from the following file: