[Simian]
* Partial implementation of RezScript * Ported LSL to C# conversion code from OpenSim. Big thank you to all of the OpenSim contributors * Moved Simian scripting code to a new folder git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2518 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -169,6 +169,7 @@ namespace Simian
|
||||
string[] clothing = Directory.GetFiles(path, "*.clothing", SearchOption.TopDirectoryOnly);
|
||||
string[] bodyparts = Directory.GetFiles(path, "*.bodypart", SearchOption.TopDirectoryOnly);
|
||||
string[] sounds = Directory.GetFiles(path, "*.ogg", SearchOption.TopDirectoryOnly);
|
||||
string[] scripts = Directory.GetFiles(path, "*.lsl", SearchOption.TopDirectoryOnly);
|
||||
|
||||
for (int i = 0; i < textures.Length; i++)
|
||||
{
|
||||
@@ -201,6 +202,14 @@ namespace Simian
|
||||
asset.Temporary = true;
|
||||
StoreAsset(asset);
|
||||
}
|
||||
|
||||
for (int i = 0; i < scripts.Length; i++)
|
||||
{
|
||||
UUID assetID = ParseUUIDFromFilename(scripts[i]);
|
||||
Asset asset = new AssetScriptText(assetID, File.ReadAllBytes(scripts[i]));
|
||||
asset.Temporary = true;
|
||||
StoreAsset(asset);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user