Add emitter api and test

This commit is contained in:
WQY\qiong
2022-10-22 14:00:22 +08:00
parent 40e97fd166
commit eca95309ed
5 changed files with 132 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ from .s9_demands import *
from .s10_status import *
from .s11_patterns import *
from .s12_curves import *
from .s16_emitters import *
def execute_add_command(name: str, cs: ChangeSet) -> ChangeSet:
@@ -55,6 +56,8 @@ def execute_update_command(name: str, cs: ChangeSet) -> ChangeSet:
return set_pattern(name, cs)
elif type == CURVE:
return set_curve(name, cs)
elif type == 'emitter':
return set_emitter(name, cs)
return ChangeSet()