prop_dynamic/static: support for 'sequence' key
This commit is contained in:
parent
370396a415
commit
9738a6a525
2 changed files with 8 additions and 0 deletions
|
@ -33,6 +33,10 @@ void
|
|||
prop_static::SpawnKey(string strKey, string strValue)
|
||||
{
|
||||
switch (strKey) {
|
||||
case "frame":
|
||||
case "sequence":
|
||||
frame = stof(strValue);
|
||||
break;
|
||||
case "modelscale":
|
||||
scale = stof(strValue);
|
||||
break;
|
||||
|
|
|
@ -53,6 +53,10 @@ void
|
|||
prop_dynamic::SpawnKey(string strKey, string strValue)
|
||||
{
|
||||
switch (strKey) {
|
||||
case "frame":
|
||||
case "sequence":
|
||||
frame = stof(strValue);
|
||||
break;
|
||||
case "solid":
|
||||
float s = stof(strValue);
|
||||
|
||||
|
|
Loading…
Reference in a new issue