コード例 #1
0
 public void Initialize (IScriptModulePlugin ScriptEngine, ISceneChildEntity host, uint localID, UUID itemID, ScriptProtectionModule module)
 {
     m_itemID = itemID;
     m_ScriptEngine = ScriptEngine;
     m_host = host;
     ScriptProtection = module;
 }
コード例 #2
0
ファイル: Bot_API.cs プロジェクト: kow/Aurora-Sim
 public void Initialize(IScriptModulePlugin ScriptEngine, ISceneChildEntity host, uint localID, UUID itemID, ScriptProtectionModule module)
 {
     m_itemID         = itemID;
     m_ScriptEngine   = ScriptEngine;
     m_host           = host;
     ScriptProtection = module;
 }
コード例 #3
0
ファイル: AA_API.cs プロジェクト: rknop/Aurora-Sim
 public void Initialize (IScriptModulePlugin ScriptEngine, ISceneChildEntity host, uint localID, UUID itemID, ScriptProtectionModule module)
 {
     m_itemID = itemID;
     m_ScriptEngine = ScriptEngine;
     m_host = host;
     ScriptProtection = module;
     AssetConnector = Aurora.DataManager.DataManager.RequestPlugin<IAssetConnector>();
 }
コード例 #4
0
ファイル: AA_API.cs プロジェクト: satlanski2/Aurora-Sim
 public void Initialize(IScriptModulePlugin ScriptEngine, ISceneChildEntity host, uint localID, UUID itemID, ScriptProtectionModule module)
 {
     m_itemID         = itemID;
     m_ScriptEngine   = ScriptEngine;
     m_host           = host;
     ScriptProtection = module;
     AssetConnector   = Aurora.DataManager.DataManager.RequestPlugin <IAssetConnector>();
 }
コード例 #5
0
        public void InitializeMRM(IScriptModulePlugin plugin, ScriptData data, MRMBase mmb, uint localID, UUID itemID)
        {
            IWorld world;
            IHost  host;

            GetGlobalEnvironment(plugin, data, localID, out world, out host);

            mmb.InitMiniModule(world, host, itemID);
        }
コード例 #6
0
ファイル: MRMConverter.cs プロジェクト: satlanski2/Aurora-Sim
        public void GetGlobalEnvironment(IScriptModulePlugin plugin, ScriptData data, uint localID, out IWorld world, out IHost host)
        {
            // UUID should be changed to object owner.
            UUID               owner        = data.World.RegionInfo.EstateSettings.EstateOwner;
            SEUser             securityUser = new SEUser(owner, "Name Unassigned");
            SecurityCredential creds        = new SecurityCredential(securityUser, data.World);

            world = new World(data.World, creds);
            host  = new Host(new SOPObject(data.World, localID, creds), data.World, new ExtensionHandler(plugin.Extensions));
        }
コード例 #7
0
ファイル: MOD_Api.cs プロジェクト: rknop/Aurora-Sim
        public void Initialize (IScriptModulePlugin ScriptEngine, ISceneChildEntity host, uint localID, UUID itemID, ScriptProtectionModule module)
        {
            m_ScriptEngine = ScriptEngine;
            m_host = host;
            m_localID = localID;
            m_itemID = itemID;
            ScriptProtection = module;

            m_comms = World.RequestModuleInterface<IScriptModuleComms>();
        }
コード例 #8
0
ファイル: MOD_Api.cs プロジェクト: satlanski2/Aurora-Sim
        public void Initialize(IScriptModulePlugin ScriptEngine, ISceneChildEntity host, uint localID, UUID itemID, ScriptProtectionModule module)
        {
            m_ScriptEngine   = ScriptEngine;
            m_host           = host;
            m_localID        = localID;
            m_itemID         = itemID;
            ScriptProtection = module;

            m_comms = World.RequestModuleInterface <IScriptModuleComms>();
        }
コード例 #9
0
        public void FinishCompile(IScriptModulePlugin plugin, ScriptData data, IScript Script)
        {
            MRMBase mmb = (MRMBase)Script;

            if (mmb == null)
            {
                return;
            }

            InitializeMRM(plugin, data, mmb, data.Part.LocalId, data.ItemID);
            mmb.Start();
        }
コード例 #10
0
ファイル: LS_Api.cs プロジェクト: KristenMynx/Aurora-Sim
        //internal IWindLightSettingsModule m_lightShareModule;

        public void Initialize(IScriptModulePlugin ScriptEngine, SceneObjectPart host, uint localID, UUID itemID, ScriptProtectionModule module)
        {
            m_ScriptEngine = ScriptEngine;
            m_host = host;
            m_localID = localID;
            m_itemID = itemID;
            ScriptProtection = module;

            if (m_ScriptEngine.Config.GetBoolean("AllowLightShareFunctions", false))
                m_LSFunctionsEnabled = true;

            m_comms = World.RequestModuleInterface<IScriptModuleComms>();
            if (m_comms == null)
                m_LSFunctionsEnabled = false;
        }
コード例 #11
0
        public void Initialize(IScriptModulePlugin ScriptEngine, ISceneChildEntity host, uint localID, UUID itemID, ScriptProtectionModule module)
        {
            m_ScriptEngine = ScriptEngine;
            m_host = host;
            m_localID = localID;
            m_itemID = itemID;

            if (m_ScriptEngine.Config.GetBoolean("AllowOSFunctions", false))
                m_OSFunctionsEnabled = true;

            m_ScriptDelayFactor =
                    m_ScriptEngine.Config.GetFloat("ScriptDelayFactor", 1.0f);
            m_ScriptDistanceFactor =
                    m_ScriptEngine.Config.GetFloat("ScriptDistanceLimitFactor", 1.0f);
            ScriptProtection = module;
        }
コード例 #12
0
        //internal IWindLightSettingsModule m_lightShareModule;

        public void Initialize(IScriptModulePlugin ScriptEngine, ISceneChildEntity host, uint localID, UUID itemID, ScriptProtectionModule module)
        {
            m_ScriptEngine   = ScriptEngine;
            m_host           = host;
            m_localID        = localID;
            m_itemID         = itemID;
            ScriptProtection = module;

            if (m_ScriptEngine.Config.GetBoolean("AllowLightShareFunctions", false))
            {
                m_LSFunctionsEnabled = true;
            }

            m_comms = World.RequestModuleInterface <IScriptModuleComms>();
            if (m_comms == null)
            {
                m_LSFunctionsEnabled = false;
            }
        }
コード例 #13
0
ファイル: LSL_Api.cs プロジェクト: mugginsm/Aurora-Sim
        public void Initialize(IScriptModulePlugin ScriptEngine, SceneObjectPart host, uint localID, UUID itemID, ScriptProtectionModule module)
        {
            m_ScriptEngine = ScriptEngine;
            m_host = host;
            m_localID = localID;
            m_itemID = itemID;
            ScriptProtection = module;

            m_ScriptDelayFactor =
                m_ScriptEngine.Config.GetFloat("ScriptDelayFactor", 1.0f);
            m_ScriptDistanceFactor =
                m_ScriptEngine.Config.GetFloat("ScriptDistanceLimitFactor", 1.0f);
            m_MinTimerInterval =
                m_ScriptEngine.Config.GetFloat("MinTimerInterval", 0.5f);
            m_automaticLinkPermission =
                m_ScriptEngine.Config.GetBoolean("AutomaticLinkPermission", false);
            m_notecardLineReadCharsMax =
                m_ScriptEngine.Config.GetInt("NotecardLineReadCharsMax", 255);
            if (m_notecardLineReadCharsMax > 65535)
                m_notecardLineReadCharsMax = 65535;

            m_TransferModule =
                    World.RequestModuleInterface<IMessageTransferModule>();
            m_UrlModule = World.RequestModuleInterface<IUrlModule>();
            m_comms = World.RequestModuleInterface<IWorldComm>();
        }
コード例 #14
0
ファイル: LSL_Api.cs プロジェクト: VirtualReality/Universe
        public void Initialize(IScriptModulePlugin ScriptEngine, ISceneChildEntity host, uint localID, UUID itemID,
                               ScriptProtectionModule module)
        {
            m_ScriptEngine = ScriptEngine;
            m_host = host;
            m_localID = localID;
            m_itemID = itemID;
            ScriptProtection = module;

            m_ScriptDelayFactor =
                m_ScriptEngine.Config.GetFloat("ScriptDelayFactor", 1.0f);
            m_ScriptDistanceFactor =
                m_ScriptEngine.Config.GetFloat("ScriptDistanceLimitFactor", 1.0f);
            m_MinTimerInterval =
                m_ScriptEngine.Config.GetFloat("MinTimerInterval", 0.5f);
            m_automaticLinkPermission =
                m_ScriptEngine.Config.GetBoolean("AutomaticLinkPermission", false);
            m_allowOpenSimParams =
                m_ScriptEngine.Config.GetBoolean("AllowOpenSimParamsInLLFunctions", false);
            m_notecardLineReadCharsMax =
                m_ScriptEngine.Config.GetInt("NotecardLineReadCharsMax", 255);
            if (m_notecardLineReadCharsMax > 65535)
                m_notecardLineReadCharsMax = 65535;

            m_TransferModule =
                World.RequestModuleInterface<IMessageTransferModule>();
            m_UrlModule = World.RequestModuleInterface<IUrlModule>();
            m_comms = World.RequestModuleInterface<IWorldComm>();

            m_sleepMsOnEmail = EMAIL_PAUSE_TIME * 1000;
        }
コード例 #15
0
ファイル: CSConverter.cs プロジェクト: TagsRocks/Aurora-Sim
 public void FinishCompile(IScriptModulePlugin plugin, ScriptData data, IScript Script)
 {
     Script.SetSceneRefs(data.World, data.Part, false);
 }
コード例 #16
0
        public void InitializeMRM(IScriptModulePlugin plugin, ScriptData data, MRMBase mmb, uint localID, UUID itemID)
        {
            IWorld world;
            IHost host;

            GetGlobalEnvironment(plugin, data, localID, out world, out host);

            mmb.InitMiniModule(world, host, itemID);
        }
コード例 #17
0
ファイル: CSConverter.cs プロジェクト: kchi059/Aurora-Sim
 public void FinishCompile (IScriptModulePlugin plugin, ScriptData data, IScript Script)
 {
 }
コード例 #18
0
 public void FinishCompile(IScriptModulePlugin plugin, ScriptData data, IScript Script)
 {
 }
コード例 #19
0
        public void FinishCompile(IScriptModulePlugin plugin, ScriptData data, IScript Script)
        {
            MRMBase mmb = (MRMBase) Script;
            if (mmb == null)
                return;

            InitializeMRM(plugin, data, mmb, data.Part.LocalId, data.ItemID);
            mmb.Start();
        }
コード例 #20
0
ファイル: CSConverter.cs プロジェクト: kchi059/Aurora-Sim
 public void FinishCompile(IScriptModulePlugin plugin, ScriptData data, IScript Script)
 {
     Script.SetSceneRefs(data.World, data.Part, false);
 }
コード例 #21
0
        public void GetGlobalEnvironment(IScriptModulePlugin plugin, ScriptData data, uint localID, out IWorld world,
                                         out IHost host)
        {
            // UUID should be changed to object owner.
            UUID owner = data.World.RegionInfo.EstateSettings.EstateOwner;
            SEUser securityUser = new SEUser(owner, "Name Unassigned");
            SecurityCredential creds = new SecurityCredential(securityUser, data.World);

            world = new World(data.World, creds);
            host = new Host(new SOPObject(data.World, localID, creds), data.World,
                            new ExtensionHandler(plugin.Extensions));
        }