Overload  1.1
Game engine with editor
Static Public Member Functions | List of all members
OvCore::Global::ServiceLocator Class Reference

#include <ServiceLocator.h>

Static Public Member Functions

template<typename T >
static void Provide (T &p_service)
template<typename T >
static T & Get ()

Detailed Description

Provide a way to access to core services

Member Function Documentation

◆ Get()

template<typename T >
static T& OvCore::Global::ServiceLocator::Get ( )

Returns a service of the given type (Make sure that your provided the service before calling this method)

◆ Provide()

template<typename T >
static void OvCore::Global::ServiceLocator::Provide ( T &  p_service)

Register a service in the service locator


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