mirror of
https://github.com/opensim/opensim.git
synced 2026-06-30 02:57:02 +08:00
Rename new JsonScript functions JsonPathType() -> JsonGetPathType() and JsonArrayLength() -> JsonGetArrayLength()
This is for consistentency with the verb:noun naming approach existing json script functions and other script functions. Corresponding c# methods also changed since verb:noun is also the .net c# method naming guideline (as used by OpenSimulator) and for consistency with script functions. As agreed with cmickeyb
This commit is contained in:
@@ -336,9 +336,9 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore
|
||||
/// </summary>
|
||||
// -----------------------------------------------------------------
|
||||
[ScriptInvocation]
|
||||
public int JsonPathType(UUID hostID, UUID scriptID, UUID storeID, string path)
|
||||
public int JsonGetPathType(UUID hostID, UUID scriptID, UUID storeID, string path)
|
||||
{
|
||||
return (int)m_store.PathType(storeID,path);
|
||||
return (int)m_store.GetPathType(storeID,path);
|
||||
}
|
||||
|
||||
[ScriptInvocation]
|
||||
@@ -387,9 +387,9 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore
|
||||
/// </summary>
|
||||
// -----------------------------------------------------------------
|
||||
[ScriptInvocation]
|
||||
public int JsonArrayLength(UUID hostID, UUID scriptID, UUID storeID, string path)
|
||||
public int JsonGetArrayLength(UUID hostID, UUID scriptID, UUID storeID, string path)
|
||||
{
|
||||
return m_store.ArrayLength(storeID,path);
|
||||
return m_store.GetArrayLength(storeID,path);
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user