当前位置: 首页>>代码示例>>C#>>正文


C# IScene.GetSceneModule方法代码示例

本文整理汇总了C#中IScene.GetSceneModule方法的典型用法代码示例。如果您正苦于以下问题:C# IScene.GetSceneModule方法的具体用法?C# IScene.GetSceneModule怎么用?C# IScene.GetSceneModule使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IScene的用法示例。


在下文中一共展示了IScene.GetSceneModule方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Start

        public void Start(IScene scene)
        {
            m_scene = scene;

            m_dataStore = m_scene.Simian.GetAppModule<IDataStore>();
            if (m_dataStore == null)
            {
                m_log.Error("LLPrimitiveLoader requires an IDataStore");
                return;
            }

            m_primMesher = m_scene.GetSceneModule<IPrimMesher>();
            if (m_primMesher == null)
            {
                m_log.Error("LLPrimitiveLoader requires an IPrimMesher");
                return;
            }

            m_scriptEngine = m_scene.GetSceneModule<ILSLScriptEngine>();

            m_writeQueue = new ThrottledQueue<UUID, PrimSerialization>(5, 1000 * 30, true, SerializationHandler);
            m_writeQueue.Start();

            m_scene.OnEntityAddOrUpdate += EntityAddOrUpdateHandler;
            m_scene.OnEntityRemove += EntityRemoveHandler;

            Deserialize();
        }
开发者ID:thoys,项目名称:simian,代码行数:28,代码来源:LLPrimitiveLoader.cs

示例2: Start

        public void Start(IScene scene)
        {
            m_scene = scene;

            m_assetClient = m_scene.Simian.GetAppModule<IAssetClient>();
            if (m_assetClient == null)
            {
                m_log.Warn("Upload requires an IAssetClient");
                return;
            }

            m_httpServer = m_scene.Simian.GetAppModule<IHttpServer>();
            if (m_httpServer == null)
            {
                m_log.Warn("Upload requires an IHttpServer");
                return;
            }

            m_primMesher = m_scene.GetSceneModule<IPrimMesher>();
            m_permissions = m_scene.GetSceneModule<LLPermissions>();

            m_scene.Capabilities.AddProtectedResource(m_scene.ID, "UploadBakedTexture", UploadBakedTextureHandler);
            m_scene.Capabilities.AddProtectedResource(m_scene.ID, "UploadBakedTextureData", UploadBakedTextureDataHandler);
            m_scene.Capabilities.AddProtectedResource(m_scene.ID, "UploadObjectAsset", UploadObjectAssetHandler);
        }
开发者ID:thoys,项目名称:simian,代码行数:25,代码来源:Upload.cs

示例3: Start

        public void Start(IScene scene)
        {
            m_assetClient = scene.Simian.GetAppModule<IAssetClient>();
            m_terrain = scene.GetSceneModule<ITerrain>();
            m_primMesher = scene.GetSceneModule<IPrimMesher>();
            m_lslScriptEngine = scene.GetSceneModule<ILSLScriptEngine>();

            int implemented = CountMethods();
            m_log.Debug("Initializing LSL API with " + implemented + "/" + m_methods.Count + " implemented methods");
        }
开发者ID:osgrid,项目名称:openmetaverse,代码行数:10,代码来源:LindenApi.cs

示例4: Start

 public void Start(IScene scene)
 {
     m_httpServer = scene.Simian.GetAppModule<IHttpServer>();
     m_assetClient = scene.Simian.GetAppModule<IAssetClient>();
     m_terrain = scene.GetSceneModule<ITerrain>();
     m_primMesher = scene.GetSceneModule<IPrimMesher>();
     m_lslScriptEngine = scene.GetSceneModule<ILSLScriptEngine>();
     m_messaging = scene.GetSceneModule<Messaging>();
     m_sounds = scene.GetSceneModule<Sounds>();
 }
开发者ID:thoys,项目名称:simian,代码行数:10,代码来源:LindenApi.cs

示例5: Start

        public void Start(IScene scene)
        {
            m_scene = scene;

            m_httpServer = m_scene.Simian.GetAppModule<IHttpServer>();
            if (m_httpServer == null)
            {
                m_log.Warn("NewFileAgentInventory requires an IHttpServer");
                return;
            }

            m_assetClient = m_scene.Simian.GetAppModule<IAssetClient>();
            if (m_assetClient == null)
            {
                m_log.Warn("NewFileAgentInventory requires an IAssetClient");
                return;
            }

            m_inventoryClient = m_scene.Simian.GetAppModule<IInventoryClient>();
            if (m_inventoryClient == null)
            {
                m_log.Warn("NewFileAgentInventory requires an IInventoryClient");
            }

            m_permissions = m_scene.GetSceneModule<LLPermissions>();

            //m_scene.Capabilities.AddProtectedResource(m_scene.ID, "NewFileAgentInventory", NewFileAgentInventoryHandler);
            m_scene.Capabilities.AddProtectedResource(m_scene.ID, "NewFileAgentInventoryVariablePrice", NewFileAgentInventoryVariablePriceHandler);
        }
开发者ID:thoys,项目名称:simian,代码行数:29,代码来源:NewFileAgentInventory.cs

示例6: Start

        public void Start(IScene scene)
        {
            m_scene = scene;
            m_lslScriptEngine = m_scene.GetSceneModule<ILSLScriptEngine>();

            m_udp = m_scene.GetSceneModule<LLUDP>();
            if (m_udp != null)
            {
                m_udp.AddPacketHandler(PacketType.AgentUpdate, AgentUpdateHandler);
                m_udp.AddPacketHandler(PacketType.SetAlwaysRun, SetAlwaysRunHandler);
                m_udp.AddPacketHandler(PacketType.AgentRequestSit, AgentRequestSitHandler);
                m_udp.AddPacketHandler(PacketType.AgentSit, AgentSitHandler);

                m_scene.Simian.AddHeartbeatHandler(SendCoarseLocations);
            }
        }
开发者ID:thoys,项目名称:simian,代码行数:16,代码来源:Movement.cs

示例7: Start

        public void Start(IScene scene)
        {
            m_scene = scene;

            m_httpServer = m_scene.Simian.GetAppModule<IHttpServer>();
            if (m_httpServer == null)
            {
                m_log.Warn("RezAvatar requires an IHttpServer");
                return;
            }

            m_userClient = m_scene.Simian.GetAppModule<IUserClient>();
            if (m_userClient == null)
            {
                m_log.Warn("RezAvatar requires an IUserClient");
                return;
            }

            m_lludp = scene.GetSceneModule<LLUDP>();
            if (m_lludp == null)
            {
                m_log.Error("Can't create the RegionDomain service without an LLUDP server");
                return;
            }

            string urlFriendlySceneName = WebUtil.UrlEncode(m_scene.Name);
            string regionPath = "/regions/" + urlFriendlySceneName;

            m_httpServer.AddHandler("POST", null, regionPath + "/rez_avatar/request", true, true, RezAvatarRequestHandler);
            m_scene.AddPublicCapability("rez_avatar/request", m_httpServer.HttpAddress.Combine(regionPath + "/rez_avatar/request"));
        }
开发者ID:thoys,项目名称:simian,代码行数:31,代码来源:RezAvatar.cs

示例8: Start

        public void Start(IScene scene)
        {
            m_scene = scene;

            m_regionInfo = m_scene.GetSceneModule<RegionInfo>();
            m_permissions = m_scene.GetSceneModule<LLPermissions>();

            m_udp = m_scene.GetSceneModule<LLUDP>();
            if (m_udp != null)
            {
                m_udp.AddPacketHandler(PacketType.UseCircuitCode, UseCircuitCodeHandler);
                m_udp.AddPacketHandler(PacketType.CompleteAgentMovement, CompleteAgentMovementHandler);
                m_udp.AddPacketHandler(PacketType.LogoutRequest, LogoutRequestHandler);
                m_udp.AddPacketHandler(PacketType.AgentThrottle, AgentThrottleHandler);
                m_udp.AddPacketHandler(PacketType.RegionHandshakeReply, RegionHandshakeReplyHandler);
            }
        }
开发者ID:osgrid,项目名称:openmetaverse,代码行数:17,代码来源:Connections.cs

示例9: Start

        public void Start(IScene scene)
        {
            m_scene = scene;

            m_inventory = m_scene.Simian.GetAppModule<IInventoryClient>();
            m_scriptEngine = m_scene.GetSceneModule<ILSLScriptEngine>();

            m_udp = m_scene.GetSceneModule<LLUDP>();
            if (m_udp != null)
            {
                m_udp.AddPacketHandler(PacketType.RequestTaskInventory, RequestTaskInventoryHandler);
                m_udp.AddPacketHandler(PacketType.UpdateTaskInventory, UpdateTaskInventoryHandler);
                m_udp.AddPacketHandler(PacketType.RezScript, RezScriptHandler);
                m_udp.AddPacketHandler(PacketType.RemoveTaskInventory, RemoveTaskInventoryHandler);
                m_udp.AddPacketHandler(PacketType.MoveTaskInventory, MoveTaskInventoryHandler);
                m_udp.AddPacketHandler(PacketType.GetScriptRunning, GetScriptRunningHandler);
            }
        }
开发者ID:osgrid,项目名称:openmetaverse,代码行数:18,代码来源:TaskInventory.cs

示例10: Start

        public void Start(IScene scene)
        {
            m_scene = scene;

            m_udp = m_scene.GetSceneModule<LLUDP>();
            if (m_udp != null)
            {
                m_scene.AddInterestListHandler(PRELOAD_SOUND, new InterestListEventHandler { SendCallback = SendPreloadSoundsPacket });
            }
        }
开发者ID:thoys,项目名称:simian,代码行数:10,代码来源:Sounds.cs

示例11: Start

        public void Start(IScene scene)
        {
            m_scene = scene;
            m_permissions = m_scene.GetSceneModule<LLPermissions>();

            m_parcels = m_scene.GetSceneModule<IParcels>();
            if (m_parcels == null)
            {
                m_log.Error("Cannot load Parcels without an IParcels");
                return;
            }

            m_udp = m_scene.GetSceneModule<LLUDP>();
            if (m_udp != null)
            {
                m_udp.AddPacketHandler(PacketType.ParcelInfoRequest, ParcelInfoRequestHandler);
                m_udp.AddPacketHandler(PacketType.ParcelDwellRequest, ParcelDwellRequestHandler);
                m_udp.AddPacketHandler(PacketType.ParcelObjectOwnersRequest, ParcelObjectOwnersRequestHandler);
                m_udp.AddPacketHandler(PacketType.ParcelPropertiesRequest, ParcelPropertiesRequestHandler);
                m_udp.AddPacketHandler(PacketType.ParcelPropertiesRequestByID, ParcelPropertiesRequestByIDHandler);
                m_udp.AddPacketHandler(PacketType.ParcelPropertiesUpdate, ParcelPropertiesUpdateHandler);
                m_udp.AddPacketHandler(PacketType.ParcelAccessListRequest, ParcelAccessListRequestHandler);
                m_udp.AddPacketHandler(PacketType.ParcelAccessListUpdate, ParcelAccessListUpdateHandler);
                m_udp.AddPacketHandler(PacketType.ParcelSetOtherCleanTime, ParcelSetOtherCleanTimeHandler);
                m_udp.AddPacketHandler(PacketType.ParcelDivide, ParcelDivideHandler);
                m_udp.AddPacketHandler(PacketType.ParcelJoin, ParcelJoinHandler);
                m_udp.AddPacketHandler(PacketType.ParcelDeedToGroup, ParcelDeedToGroupHandler);
                m_udp.AddPacketHandler(PacketType.ParcelRelease, ParcelReleaseHandler);
                m_udp.AddPacketHandler(PacketType.ParcelBuy, ParcelBuyHandler);
                m_udp.AddPacketHandler(PacketType.ParcelBuyPass, ParcelBuyPassHandler);
                m_udp.AddPacketHandler(PacketType.ParcelSelectObjects, ParcelSelectObjectsHandler);
                m_udp.AddPacketHandler(PacketType.ParcelDisableObjects, ParcelDisableObjectsHandler);
                m_udp.AddPacketHandler(PacketType.ParcelReturnObjects, ParcelReturnObjectsHandler);
                m_udp.AddPacketHandler(PacketType.ParcelGodForceOwner, ParcelGodForceOwnerHandler);
                m_udp.AddPacketHandler(PacketType.ParcelGodMarkAsContent, ParcelGodMarkAsContentHandler);

                m_scene.OnPresenceAdd += PresenceAddHandler;
                m_scene.OnEntitySignificantMovement += EntitySignificantMovementHandler;
            }
        }
开发者ID:thoys,项目名称:simian,代码行数:40,代码来源:Parcels.cs

示例12: Start

        public void Start(IScene scene)
        {
            m_scene = scene;

            m_assets = m_scene.Simian.GetAppModule<IAssetClient>();
            if (m_assets == null)
            {
                m_log.Error("Can't initialize asset transfers without an IAssetClient");
                return;
            }

            m_permissions = m_scene.GetSceneModule<LLPermissions>();

            m_udp = m_scene.GetSceneModule<LLUDP>();
            if (m_udp != null)
            {
                m_udp.AddPacketHandler(PacketType.RequestXfer, RequestXferHandler);
                m_udp.AddPacketHandler(PacketType.ConfirmXferPacket, ConfirmXferPacketHandler);
                m_udp.AddPacketHandler(PacketType.AssetUploadRequest, AssetUploadRequestHandler);
                m_udp.AddPacketHandler(PacketType.SendXferPacket, SendXferPacketHandler);
                m_udp.AddPacketHandler(PacketType.AbortXfer, AbortXferHandler);
                m_udp.AddPacketHandler(PacketType.TransferRequest, TransferRequestHandler);
            }
        }
开发者ID:thoys,项目名称:simian,代码行数:24,代码来源:Assets.cs

示例13: Start

        public void Start(IScene scene)
        {
            m_scene = scene;

            m_httpServer = m_scene.Simian.GetAppModule<IHttpServer>();
            if (m_httpServer == null)
            {
                m_log.Warn("ObjectMedia requires an IHttpServer");
                return;
            }

            m_permissions = m_scene.GetSceneModule<LLPermissions>();

            m_scene.Capabilities.AddProtectedResource(m_scene.ID, "ObjectMedia", ObjectMediaHandler);
        }
开发者ID:osgrid,项目名称:openmetaverse,代码行数:15,代码来源:ObjectMedia.cs

示例14: Start

        public void Start(IScene scene)
        {
            m_scene = scene;

            m_userClient = m_scene.Simian.GetAppModule<IUserClient>();

            m_udp = m_scene.GetSceneModule<LLUDP>();
            if (m_udp != null)
            {
                m_udp.AddPacketHandler(PacketType.AgentDataUpdateRequest, AgentDataUpdateRequestHandler);
                m_udp.AddPacketHandler(PacketType.UUIDNameRequest, UUIDNameRequestHandler);
                m_udp.AddPacketHandler(PacketType.UUIDGroupNameRequest, UUIDGroupNameRequestHandler);
                m_udp.AddPacketHandler(PacketType.AvatarPropertiesRequest, AvatarPropertiesRequestHandler);
                m_udp.AddPacketHandler(PacketType.AvatarPropertiesUpdate, AvatarPropertiesUpdateHandler);
                m_udp.AddPacketHandler(PacketType.AvatarInterestsUpdate, AvatarInterestsUpdateHandler);
            }
        }
开发者ID:thoys,项目名称:simian,代码行数:17,代码来源:AgentData.cs

示例15: Start

        public void Start(IScene scene)
        {
            m_scene = scene;

            m_udp = m_scene.GetSceneModule<LLUDP>();
            if (m_udp != null)
            {
                m_scene.AddInterestListHandler(AVATAR_ANIMATION, new InterestListEventHandler { PriorityCallback = AnimationPrioritizer, SendCallback = SendAvatarAnimationPackets });
                m_scene.AddInterestListHandler(VIEWER_EFFECT, new InterestListEventHandler { PriorityCallback = ViewerEffectPrioritizer, SendCallback = SendViewerEffectPackets });

                m_udp.AddPacketHandler(PacketType.AgentAnimation, AgentAnimationHandler);
                m_udp.AddPacketHandler(PacketType.ViewerEffect, ViewerEffectHandler);

                m_scene.OnPresenceAdd += PresenceAddHandler;
                m_scene.OnSendPresenceAnimations += SendPresenceAnimationsHandler;
            }
        }
开发者ID:thoys,项目名称:simian,代码行数:17,代码来源:Animations.cs


注:本文中的IScene.GetSceneModule方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。