aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/World/NPC/NPCModule.cs
diff options
context:
space:
mode:
authorAdam Frisby2008-05-11 04:32:43 +0000
committerAdam Frisby2008-05-11 04:32:43 +0000
commitee352ebc7971fbb62319da53c520304bda5a15a2 (patch)
treec7f6fba9087846bb203e1f3812c4e3445c8650e1 /OpenSim/Region/Environment/Modules/World/NPC/NPCModule.cs
parent* Refactored two more OutPackets. ObjectPropertiesFamily, and Object Propert... (diff)
downloadopensim-SC_OLD-ee352ebc7971fbb62319da53c520304bda5a15a2.zip
opensim-SC_OLD-ee352ebc7971fbb62319da53c520304bda5a15a2.tar.gz
opensim-SC_OLD-ee352ebc7971fbb62319da53c520304bda5a15a2.tar.bz2
opensim-SC_OLD-ee352ebc7971fbb62319da53c520304bda5a15a2.tar.xz
* Added NPCModule and NPCAvatar classes for NPCs. Primitive, but we can grow them out.
* Fix for Scene.Inventory.cs - It assumes every entity at startup is a SceneObjectGroup. (Actually, this shouldn't have compiled[!] without a warning.) * Fix for LandManager at startup - it assumes there's a land channel when perhaps there isnt. (Bug that needs another refactor to fix. [Mike - I've assigned a ticket to you about this])
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Modules/World/NPC/NPCModule.cs43
1 files changed, 43 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/NPC/NPCModule.cs b/OpenSim/Region/Environment/Modules/World/NPC/NPCModule.cs
new file mode 100644
index 0000000..7aeff57
--- /dev/null
+++ b/OpenSim/Region/Environment/Modules/World/NPC/NPCModule.cs
@@ -0,0 +1,43 @@
1using libsecondlife;
2using Nini.Config;
3using OpenSim.Region.Environment.Interfaces;
4using OpenSim.Region.Environment.Scenes;
5
6namespace OpenSim.Region.Environment.Modules.World.NPC
7{
8 public class NPCModule : IRegionModule
9 {
10 private const bool m_enabled = false;
11
12 public void Initialise(Scene scene, IConfigSource source)
13 {
14 if (m_enabled)
15 {
16 NPCAvatar testAvatar = new NPCAvatar("Jack", "NPC", new LLVector3(128, 128, 40), scene);
17 NPCAvatar testAvatar2 = new NPCAvatar("Jill", "NPC", new LLVector3(136, 128, 40), scene);
18 scene.AddNewClient(testAvatar, false);
19 scene.AddNewClient(testAvatar2, false);
20 }
21 }
22
23 public void PostInitialise()
24 {
25
26 }
27
28 public void Close()
29 {
30
31 }
32
33 public string Name
34 {
35 get { return "NPCModule"; }
36 }
37
38 public bool IsSharedModule
39 {
40 get { return true; }
41 }
42 }
43}