View of /trunk/ModularRex/RexParts/RexScriptAccess.cs
Parent Directory
|
Revision Log
Revision 12 -
(download)
(annotate)
Thu Nov 27 12:11:01 2008 UTC (4 years, 5 months ago) by mikkopa
File size: 951 byte(s)
Thu Nov 27 12:11:01 2008 UTC (4 years, 5 months ago) by mikkopa
File size: 951 byte(s)
Initial RexPython work. Changed code so it compiles, but many functions still not implemented. Needs still lots of work.
using System;
using System.Collections.Generic;
using System.Text;
using OpenMetaverse;
namespace ModularRex.RexParts
{
// Interface for script engine.
public interface RexScriptAccessInterface
{
bool GetAvatarStartLocation(out Vector3 vLoc, out Vector3 vLookAt);
}
// Static class used for getting values from the script to server .net code.
// At the moment supports only one engine -> static.
public class RexScriptAccess
{
public static RexScriptAccessInterface MyScriptAccess = null;
public static bool GetAvatarStartLocation(out Vector3 vLoc, out Vector3 vLookAt)
{
vLoc = new Vector3(0, 0, 0);
vLookAt = new Vector3(0, 0, 0);
if (MyScriptAccess != null)
return MyScriptAccess.GetAvatarStartLocation(out vLoc, out vLookAt);
else
return false;
}
}
}
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

