aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/scripts/scriptutility.cpp
blob: 8dae49cf8aec992086c39ae9c869d94a55aea829 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "pch.h"
#include "squirrel/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;
}