sampleworldinfo.py 713 B

12345678910111213141516171819202122232425
  1. # sampleworldinfo.py
  2. #print "sampleworldinfo.................................."
  3. import rxworldinfo
  4. import sys
  5. import clr
  6. from System.Collections.Generic import List as GenericList
  7. asm = clr.LoadAssemblyByName('OpenSim.Region.ScriptEngine.Common')
  8. Vector3 = asm.OpenSim.Region.ScriptEngine.Common.LSL_Types.Vector3
  9. class SampleWorldInfo(rxworldinfo.WorldInfo):
  10. def GetScriptClassName():
  11. return "sampleworldinfo.SampleWorldInfo"
  12. def GetAvatarStartLocation(self):
  13. templist = GenericList[Vector3]()
  14. loc = Vector3(70,70,100)
  15. lookat = Vector3(128,128,100)
  16. templist.Add(loc)
  17. templist.Add(lookat)
  18. return templist