/
EvilBeaver
/
OneScript
Обзор
Документация
Войти
/
EvilBeaver
/
OneScript
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
v2.0.1
src/OneScript.Native/Compiler/DynamicModule.cs
33 строки
1 KB
EvilBeaver
Фиксация промежуточных доработок
12 мар 2025, 13:32
12 мар 2025, 13:32
96da51e
Код
Авторство
О чём код?
/*---------------------------------------------------------- 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; using System.Linq; using OneScript.Contexts; using OneScript.Execution; using OneScript.Sources; namespace OneScript.Native.Compiler { public class DynamicModule : IExecutableModule { public IList<BslAnnotationAttribute> ModuleAttributes { get; } = new List<BslAnnotationAttribute>(); public IList<BslScriptFieldInfo> Fields { get; } = new List<BslScriptFieldInfo>(); public IList<BslScriptPropertyInfo> Properties { get; } = new List<BslScriptPropertyInfo>(); public IList<BslScriptMethodInfo> Methods { get; } = new List<BslScriptMethodInfo>(); public BslScriptMethodInfo ModuleBody => Methods.FirstOrDefault(x => x.Name == IExecutableModule.BODY_METHOD_NAME); public SourceCode Source { get; set; } public IDictionary<Type, object> Interfaces { get; } = new Dictionary<Type, object>(); } }