prop_dynamic/static: support for 'sequence' key
This commit is contained in:
parent
370396a415
commit
9738a6a525
|
@ -33,6 +33,10 @@ void
|
||||||
prop_static::SpawnKey(string strKey, string strValue)
|
prop_static::SpawnKey(string strKey, string strValue)
|
||||||
{
|
{
|
||||||
switch (strKey) {
|
switch (strKey) {
|
||||||
|
case "frame":
|
||||||
|
case "sequence":
|
||||||
|
frame = stof(strValue);
|
||||||
|
break;
|
||||||
case "modelscale":
|
case "modelscale":
|
||||||
scale = stof(strValue);
|
scale = stof(strValue);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -53,6 +53,10 @@ void
|
||||||
prop_dynamic::SpawnKey(string strKey, string strValue)
|
prop_dynamic::SpawnKey(string strKey, string strValue)
|
||||||
{
|
{
|
||||||
switch (strKey) {
|
switch (strKey) {
|
||||||
|
case "frame":
|
||||||
|
case "sequence":
|
||||||
|
frame = stof(strValue);
|
||||||
|
break;
|
||||||
case "solid":
|
case "solid":
|
||||||
float s = stof(strValue);
|
float s = stof(strValue);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue