Esempio n. 1
0
        private void CreateOSDMapForState(ScriptData script, StateSave save)
        {
            //Get any previous state saves from the component manager
            OSDMap component = m_manager.GetComponentState(script.Part, m_componentName) as OSDMap;

            if (component == null)
            {
                component = new OSDMap();
            }

            //Add our state to the list of all scripts in this object
            component[script.ItemID.ToString()] = save.ToOSD();

            //Now resave it
            m_manager.SetComponentState(script.Part, m_componentName, component);
        }