OpenSimMirror/bin/ScriptEngines/PythonScript/Samples/sampleworldinfo.py

26 lines
713 B
Python
Raw Normal View History

2008-02-20 08:25:07 +00:00
# sampleworldinfo.py
#print "sampleworldinfo.................................."
import rxworldinfo
import sys
import clr
from System.Collections.Generic import List as GenericList
asm = clr.LoadAssemblyByName('OpenSim.Region.ScriptEngine.Common')
Vector3 = asm.OpenSim.Region.ScriptEngine.Common.LSL_Types.Vector3
class SampleWorldInfo(rxworldinfo.WorldInfo):
def GetScriptClassName():
return "sampleworldinfo.SampleWorldInfo"
def GetAvatarStartLocation(self):
templist = GenericList[Vector3]()
loc = Vector3(70,70,100)
lookat = Vector3(128,128,100)
templist.Add(loc)
templist.Add(lookat)
return templist