Skip to content

Commit

Permalink
Implement some tasks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Damnae committed Oct 21, 2023
1 parent 226aa34 commit 969f5a2
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/gamecore/tasks/ByTargetListAny.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<script setup lang="ts">
import { GamecoreTargetType, GamecoreTask,
} from '@/sources/gamecore';
import BlockLayout from '@/components/BlockLayout.vue';
import AnyTask from '../AnyTask.vue';
import EvaluateTargetType from '../EvaluateTargetType.vue';
const props = defineProps<{node:GamecoreTask}>()
const node = props.node as unknown as
{
TargetType:GamecoreTargetType
Predicate:GamecoreTask
}
</script>

<template>
<BlockLayout :source="node">
<span class="flow">Any in <em><EvaluateTargetType :target="node.TargetType" /></em> with condition</span>
<template #content>
<AnyTask :node="node.Predicate" />
</template>
</BlockLayout>
</template>

<style scoped>
</style>
28 changes: 28 additions & 0 deletions src/gamecore/tasks/ClearRegardAsAttackType.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<script setup lang="ts">
import { GamecoreTask, GamecoreTargetType, } from '@/sources/gamecore';
import BlockLayout from '@/components/BlockLayout.vue';
import EvaluateTargetType from '../EvaluateTargetType.vue';
const props = defineProps<{node:GamecoreTask}>()
const node = props.node as unknown as
{
TargetType?:GamecoreTargetType
OriginalAttackType:string
}
</script>

<template>
<BlockLayout :source="node">

Change
<template v-if="node.TargetType">
<em><EvaluateTargetType :target="node.TargetType" /></em>'s
</template>
<em>{{ node.OriginalAttackType }}</em> attacks
to only be considered as its original attack type.

</BlockLayout>
</template>

<style scoped>
</style>
24 changes: 24 additions & 0 deletions src/gamecore/tasks/WaitFor.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<script setup lang="ts">
import { GamecoreTask,
} from '@/sources/gamecore';
import BlockLayout from '@/components/BlockLayout.vue';
import AnyTask from '@/gamecore/AnyTask.vue';
const props = defineProps<{node:GamecoreTask}>()
const node = props.node as unknown as
{
Predicate:GamecoreTask
}
</script>

<template>
<BlockLayout :source="node">
<span class="flow">Wait for</span>
<template #content>
<AnyTask :node="node.Predicate" />
</template>
</BlockLayout>
</template>

<style scoped>
</style>

0 comments on commit 969f5a2

Please sign in to comment.