/
EvilBeaver
/
OneScript
Обзор
Документация
Войти
/
EvilBeaver
/
OneScript
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
v2.0.2
src/ScriptEngine/IGlobalsManager.cs
20 строк
668 B
Andrei Ovsiankin
Начало расшивки глобальных инстансов и статических данных
18 ноя 2020, 16:42
18 ноя 2020, 16:42
f1d45de
Код
Авторство
О чём код?
/*---------------------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. ----------------------------------------------------------*/ using System; using System.Collections.Generic; namespace ScriptEngine { public interface IGlobalsManager : IEnumerable<KeyValuePair<Type, object>>, IDisposable { void RegisterInstance(object instance); void RegisterInstance(Type type, object instance); object GetInstance(Type type); T GetInstance<T>(); } }