本文整理汇总了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();
}
示例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);
}
示例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");
}
示例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>();
}
示例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);
}
示例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);
}
}
示例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"));
}
示例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);
}
}
示例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);
}
}
示例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 });
}
}
示例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;
}
}
示例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);
}
}
示例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);
}
示例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);
}
}
示例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;
}
}