From 64ed1e1b3bea2b187679a7e61a7d56292c47daab Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Wed, 20 Jun 2007 15:18:54 +0000 Subject: * Removed ClientThreads from avatar * Deleted SimpleApp2 as it's getting wonkier and wonkier by the minute * Added avatar handling to SimpleApp, still don't have any avatar out on the playing field * Removed some warnings * Went from IWorld to Scene * --- OpenSim/Examples/SimpleApp2/MyClientView.cs | 70 ----------------------------- 1 file changed, 70 deletions(-) delete mode 100644 OpenSim/Examples/SimpleApp2/MyClientView.cs (limited to 'OpenSim/Examples/SimpleApp2/MyClientView.cs') diff --git a/OpenSim/Examples/SimpleApp2/MyClientView.cs b/OpenSim/Examples/SimpleApp2/MyClientView.cs deleted file mode 100644 index 4ef3c94..0000000 --- a/OpenSim/Examples/SimpleApp2/MyClientView.cs +++ /dev/null @@ -1,70 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using OpenSim; -using libsecondlife; -using OpenSim.Framework.Interfaces; -using System.Net; -using libsecondlife.Packets; -using OpenSim.Assets; -using OpenSim.Framework.Types; -using OpenSim.Framework; -using OpenSim.Caches; - -namespace SimpleApp2 -{ - public class MyClientView : ClientView - { - private float[] m_map; - private Dictionary m_clientAPIs; - - public MyClientView(float[] map, Dictionary clientAPIs, EndPoint remoteEP, UseCircuitCodePacket initialcirpack, Dictionary clientThreads, IWorld world, AssetCache assetCache, PacketServer packServer, InventoryCache inventoryCache, AuthenticateSessionsBase authenSessions) - : base(remoteEP, initialcirpack, clientThreads, world, assetCache, packServer, inventoryCache, authenSessions) - { - m_map = map; - m_clientAPIs = clientAPIs; - - OnRegionHandShakeReply += RegionHandShakeReplyHandler; - OnChatFromViewer += ChatHandler; - OnRequestWearables += RequestWearablesHandler; - OnCompleteMovementToRegion += CompleteMovementToRegionHandler; - } - - private void ChatHandler(byte[] message, byte type, LLVector3 fromPos, string fromName, LLUUID fromAgentID) - { - // Echo it (so you know what you typed) - SendChatMessage(message, type, fromPos, fromName, fromAgentID); - SendChatMessage("Ready.", 1, fromPos, "System", LLUUID.Zero); - } - - private void CompleteMovementToRegionHandler() - { - LLVector3 pos = new LLVector3(128, 128, 128); - - MoveAgentIntoRegion(m_world.RegionInfo, pos, LLVector3.Zero ); - - SendAvatarData( m_world.RegionInfo, FirstName, - LastName, AgentId, 0, - pos); - - SendChatMessage("Welcome to My World.", 1, pos, "System", LLUUID.Zero); - - - - // OpenSim.world.Primitive prim = new OpenSim.world.Primitive( m_clientAPIs, m_world.RegionInfo.RegionHandle, m_world, AgentId ); - - // SendNewPrim( prim ); - - } - - private void RegionHandShakeReplyHandler(IClientAPI client) - { - client.SendLayerData(m_map); - } - - private void RequestWearablesHandler(IClientAPI client) - { - SendWearables(AvatarWearable.DefaultWearables); - } - } -} -- cgit v1.1