Пример #1
0
        public XmlGroup getSubgroup(string groupName)
        {
            var node = _mapDocument.SelectSingleNode(groupName);
            if (node == null) return null;

            var XmlGroup = new XmlGroup();
            XmlGroup.Load(node);

            return XmlGroup;
        }
Пример #2
0
 public void InvokeMapChange(string mapName, XmlGroup map)
 {
     lock (_mainQueue.SyncRoot)
         _mainQueue.Enqueue(new Action(() =>
         {
             if (Language == ScriptingEngineLanguage.compiled)
             {
                 _compiledScript.API.invokeMapChange(mapName, map);
             }
         }));
 }
Пример #3
0
 internal void invokeMapChange(string mapName, XmlGroup map)
 {
     onMapChange?.Invoke(mapName, map);
 }