Add time api and test

This commit is contained in:
WQY\qiong
2022-10-22 14:53:18 +08:00
parent e3d3021286
commit 15ed42e5ac
6 changed files with 187 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ from .s10_status import *
from .s11_patterns import *
from .s12_curves import *
from .s16_emitters import *
from .s21_times import *
def execute_add_command(name: str, cs: ChangeSet) -> ChangeSet:
@@ -58,6 +59,8 @@ def execute_update_command(name: str, cs: ChangeSet) -> ChangeSet:
return set_curve(name, cs)
elif type == 'emitter':
return set_emitter(name, cs)
elif type == 'time':
return set_time(name, cs)
return ChangeSet()