aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-07-02 01:01:40 +0100
committerJustin Clark-Casey (justincc)2011-07-02 01:01:40 +0100
commit513d63455ed7cf1a7a859e9e8abaeff7e7c7ad4f (patch)
tree2da82a1a15edb61e5469ce8686820940c3f93a1b /OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
parentrefactor: simplify existing npc code by creating them directly rather than in... (diff)
downloadopensim-SC_OLD-513d63455ed7cf1a7a859e9e8abaeff7e7c7ad4f.zip
opensim-SC_OLD-513d63455ed7cf1a7a859e9e8abaeff7e7c7ad4f.tar.gz
opensim-SC_OLD-513d63455ed7cf1a7a859e9e8abaeff7e7c7ad4f.tar.bz2
opensim-SC_OLD-513d63455ed7cf1a7a859e9e8abaeff7e7c7ad4f.tar.xz
Create a very basic initial test which just creates an 'npc' and tests that the scene presence exists
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
index c1ddeee..3cdd06d 100644
--- a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
+++ b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
@@ -34,7 +34,6 @@ using Nini.Config;
34using OpenMetaverse; 34using OpenMetaverse;
35using OpenSim.Region.Framework.Interfaces; 35using OpenSim.Region.Framework.Interfaces;
36using OpenSim.Region.Framework.Scenes; 36using OpenSim.Region.Framework.Scenes;
37using OpenSim.Region.CoreModules.Avatar.NPC;
38using OpenSim.Framework; 37using OpenSim.Framework;
39using Timer=System.Timers.Timer; 38using Timer=System.Timers.Timer;
40using OpenSim.Services.Interfaces; 39using OpenSim.Services.Interfaces;
@@ -70,7 +69,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
70 return new AvatarAppearance(); 69 return new AvatarAppearance();
71 } 70 }
72 71
73 public UUID CreateNPC(string firstname, string lastname,Vector3 position, Scene scene, UUID cloneAppearanceFrom) 72 public UUID CreateNPC(string firstname, string lastname, Vector3 position, Scene scene, UUID cloneAppearanceFrom)
74 { 73 {
75 NPCAvatar npcAvatar = new NPCAvatar(firstname, lastname, position, scene); 74 NPCAvatar npcAvatar = new NPCAvatar(firstname, lastname, position, scene);
76 npcAvatar.CircuitCode = (uint)Util.RandomClass.Next(0, int.MaxValue); 75 npcAvatar.CircuitCode = (uint)Util.RandomClass.Next(0, int.MaxValue);