Add option api and test

This commit is contained in:
WQY\qiong
2022-10-22 15:31:22 +08:00
parent 15ed42e5ac
commit 3dae83b18d
6 changed files with 319 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ from .s11_patterns import *
from .s12_curves import *
from .s16_emitters import *
from .s21_times import *
from .s23_options import *
def execute_add_command(name: str, cs: ChangeSet) -> ChangeSet:
@@ -61,6 +62,8 @@ def execute_update_command(name: str, cs: ChangeSet) -> ChangeSet:
return set_emitter(name, cs)
elif type == 'time':
return set_time(name, cs)
elif type == 'option':
return set_option(name, cs)
return ChangeSet()