public void Start(IScene scene) { m_scene = scene; m_parcels = m_scene.GetSceneModule <IParcels>(); m_userClient = m_scene.Simian.GetAppModule <IUserClient>(); m_inventoryClient = m_scene.Simian.GetAppModule <IInventoryClient>(); m_groupsClient = m_scene.Simian.GetAppModule <IGroupsClient>(); m_estateClient = m_scene.Simian.GetAppModule <IEstateClient>(); }
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; } }
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; } }
public void Start(IScene scene) { m_scene = scene; m_parcels = m_scene.GetSceneModule<IParcels>(); m_userClient = m_scene.Simian.GetAppModule<IUserClient>(); m_inventoryClient = m_scene.Simian.GetAppModule<IInventoryClient>(); m_groupsClient = m_scene.Simian.GetAppModule<IGroupsClient>(); m_estateClient = m_scene.Simian.GetAppModule<IEstateClient>(); }