blob: 1ff8e4bb0d9ab3c287b63ee47b31d0326828f029 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include "pch.h"
#include "squirrel.h"
// asset function StringToAsset( string assetName )
ADD_SQFUNC(
"asset",
StringToAsset,
"string assetName",
"converts a given string to an asset",
ScriptContext::UI | ScriptContext::CLIENT | ScriptContext::SERVER)
{
g_pSquirrel<context>->pushasset(sqvm, g_pSquirrel<context>->getstring(sqvm, 1), -1);
return SQRESULT_NOTNULL;
}
|