Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (29 sloc) 1.126 kb
/////////////////////////////////////////////////////////////////////////*
//Ink Studios Source File.
//Copyright (C), Ink Studios, 2012.
//////////////////////////////////////////////////////////////////////////
// IMonoDomain interface to handle script / app domains.
//////////////////////////////////////////////////////////////////////////
// 03/05/2012 : Created by Filip 'i59' Lundgren
////////////////////////////////////////////////////////////////////////*/
#ifndef __SCRIPT_DOMAIN_H_
#define __SCRIPT_DOMAIN_H_
#include <IMonoDomain.h>
class CScriptDomain : public IMonoDomain
{
public:
// Create root domain
CScriptDomain(ERuntimeVersion runtimeVersion = eRV_2_50727);
CScriptDomain(const char *name, bool setActive = false);
~CScriptDomain();
// IMonoDomain
virtual void Release() override { delete this; }
virtual bool SetActive(bool force = false) override;
virtual bool IsActive() override { return m_pDomain == mono_domain_get(); }
virtual bool IsRoot() override { return m_bRootDomain; }
// ~IMonoDomain
private:
MonoDomain *m_pDomain;
bool m_bRootDomain;
};
#endif //__SCRIPT_DOMAIN_H_
Jump to Line
Something went wrong with that request. Please try again.