stable
This commit is contained in:
parent
0f1cb2fe6c
commit
129c07183a
51 changed files with 5711 additions and 1122 deletions
|
|
@ -194,6 +194,26 @@ def check_legacy_behavior_refs() -> None:
|
|||
|
||||
|
||||
|
||||
def check_legacy_physics_props_removed() -> None:
|
||||
terms = [
|
||||
"rotatorThickness", "rotatorSegments", "rotatorPowered", "rotatorSpeed", "rotatorAngularVelocity",
|
||||
"poisonCollisionEnabled", "poisonDamage", "poisonMass", "poisonInertia",
|
||||
"reciprocatorPowered", "reciprocatorSpeed", "reciprocatorTravel", "reciprocatorPhase",
|
||||
"reciprocatorDirection", "reciprocatorAxisAngle", "reciprocatorVelocity", "reciprocatorAnchorX", "reciprocatorAnchorY",
|
||||
"linkA", "linkB", "linkLength", "linkMidX", "linkMidY", "linkMidVX", "linkMidVY",
|
||||
"ropeParticles", "_physicsAwakeUntil", "_linkAwakeUntil",
|
||||
]
|
||||
offenders = []
|
||||
for path in (ROOT / "js").glob("*.js"):
|
||||
text = read_text(path)
|
||||
for term in terms:
|
||||
if term in text:
|
||||
offenders.append(f"{path.relative_to(ROOT).as_posix()}:{term}")
|
||||
if offenders:
|
||||
fail("legacy physics property names still present: " + ", ".join(offenders[:20]))
|
||||
ok("legacy physics property names removed")
|
||||
|
||||
|
||||
def check_basic_action_spec_runtime() -> None:
|
||||
source = "\n".join(read_text(ROOT / rel) for rel in ["js/tarinai_action_definitions.js", "js/tarinai_needs_items.js"])
|
||||
required = {
|
||||
|
|
@ -1232,6 +1252,7 @@ def main() -> None:
|
|||
check_processing_split()
|
||||
command_dispatcher_smoke()
|
||||
check_legacy_behavior_refs()
|
||||
check_legacy_physics_props_removed()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue