diff options
author | Justin Clark-Casey (justincc) | 2011-07-02 01:01:40 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-07-02 01:01:40 +0100 |
commit | 513d63455ed7cf1a7a859e9e8abaeff7e7c7ad4f (patch) | |
tree | 2da82a1a15edb61e5469ce8686820940c3f93a1b /OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs | |
parent | refactor: simplify existing npc code by creating them directly rather than in... (diff) | |
download | opensim-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.cs | 3 |
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; | |||
34 | using OpenMetaverse; | 34 | using OpenMetaverse; |
35 | using OpenSim.Region.Framework.Interfaces; | 35 | using OpenSim.Region.Framework.Interfaces; |
36 | using OpenSim.Region.Framework.Scenes; | 36 | using OpenSim.Region.Framework.Scenes; |
37 | using OpenSim.Region.CoreModules.Avatar.NPC; | ||
38 | using OpenSim.Framework; | 37 | using OpenSim.Framework; |
39 | using Timer=System.Timers.Timer; | 38 | using Timer=System.Timers.Timer; |
40 | using OpenSim.Services.Interfaces; | 39 | using 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); |