add script constant OS_APIVERSION, we should inc this on any change on any api. a few changes to os npc and avatar animation functions

This commit is contained in:
UbitUmarov
2018-11-26 16:45:04 +00:00
parent 1e76e14cce
commit 87acd20d95
5 changed files with 90 additions and 55 deletions

View File

@@ -29,13 +29,14 @@ using System;
using vector = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3;
using rotation = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Quaternion;
using LSLInteger = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger;
using LSLString = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString;
namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
{
public partial class ScriptBaseClass
{
// SCRIPTS CONSTANTS
public static readonly LSLInteger OS_APIVERSION = 1;
public static readonly LSLInteger TRUE = 1;
public static readonly LSLInteger FALSE = 0;

View File

@@ -289,12 +289,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
// Animation Functions
public void osAvatarPlayAnimation(string avatar, string animation)
public void osAvatarPlayAnimation(LSL_Key avatar, string animation)
{
m_OSSL_Functions.osAvatarPlayAnimation(avatar, animation);
}
public void osAvatarStopAnimation(string avatar, string animation)
public void osAvatarStopAnimation(LSL_Key avatar, string animation)
{
m_OSSL_Functions.osAvatarStopAnimation(avatar, animation);
}