Annotation of /trunk/ModularRex/RexParts/RexScriptAccess.cs
Parent Directory
|
Revision Log
Revision 12 - (view) (download)
| 1 : | mikkopa | 12 | using System; |
| 2 : | using System.Collections.Generic; | ||
| 3 : | using System.Text; | ||
| 4 : | using OpenMetaverse; | ||
| 5 : | |||
| 6 : | namespace ModularRex.RexParts | ||
| 7 : | { | ||
| 8 : | // Interface for script engine. | ||
| 9 : | public interface RexScriptAccessInterface | ||
| 10 : | { | ||
| 11 : | bool GetAvatarStartLocation(out Vector3 vLoc, out Vector3 vLookAt); | ||
| 12 : | } | ||
| 13 : | |||
| 14 : | |||
| 15 : | // Static class used for getting values from the script to server .net code. | ||
| 16 : | // At the moment supports only one engine -> static. | ||
| 17 : | public class RexScriptAccess | ||
| 18 : | { | ||
| 19 : | public static RexScriptAccessInterface MyScriptAccess = null; | ||
| 20 : | |||
| 21 : | public static bool GetAvatarStartLocation(out Vector3 vLoc, out Vector3 vLookAt) | ||
| 22 : | { | ||
| 23 : | vLoc = new Vector3(0, 0, 0); | ||
| 24 : | vLookAt = new Vector3(0, 0, 0); | ||
| 25 : | |||
| 26 : | if (MyScriptAccess != null) | ||
| 27 : | return MyScriptAccess.GetAvatarStartLocation(out vLoc, out vLookAt); | ||
| 28 : | else | ||
| 29 : | return false; | ||
| 30 : | } | ||
| 31 : | } | ||
| 32 : | } |
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

