From 1b4584ef804d4e17fb322b3ccd4309f4862e48d4 Mon Sep 17 00:00:00 2001 From: ethan Date: Fri, 18 Aug 2023 11:42:30 +0800 Subject: [PATCH] add SquadCombat --- examples/index.ts | 5 +++ index.html | 1 + src/arrow/attack-arrow.ts | 1 - src/arrow/squad-combat.ts | 71 +++++++++++++++++++++++++++++++++++++++ src/index.ts | 2 ++ 5 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 src/arrow/squad-combat.ts diff --git a/examples/index.ts b/examples/index.ts index 1708e6e..3eaec45 100644 --- a/examples/index.ts +++ b/examples/index.ts @@ -48,3 +48,8 @@ const swallowtailAttackArrow = document.getElementById('drawSwallowtailAttackArr swallowtailAttackArrow.onclick = () => { new CesiumPlot.SwallowtailAttackArrow(Cesium, viewer, {}); }; + +const squadCombat = document.getElementById('drawSquadCombat') as HTMLElement; +squadCombat.onclick = () => { + new CesiumPlot.SquadCombat(Cesium, viewer, {}); +}; diff --git a/index.html b/index.html index fe84942..344aa9d 100644 --- a/index.html +++ b/index.html @@ -42,6 +42,7 @@ +