Esempio n. 1
0
 public void InvokeMapChange(string mapName, XmlGroup map)
 {
     lock (_mainQueue.SyncRoot)
         _mainQueue.Enqueue(new Action(() =>
         {
             if (Language == ScriptingEngineLanguage.compiled)
             {
                 _compiledScript.API.invokeMapChange(mapName, map);
             }
         }));
 }
Esempio n. 2
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);
        }