Skip to content

Commit

Permalink
Implement some tasks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Damnae committed Apr 29, 2024
1 parent 4e0f305 commit e7fc596
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/gamecore/tasks/ComplexSkillAISourcePropertyCompare.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<script setup lang="ts">
import { GamecoreTask, } from '@/sources/gamecore';
import BlockLayout from '@/components/BlockLayout.vue';
const props = defineProps<{node:GamecoreTask}>()
const node = props.node as unknown as
{
TargetPropertyType:string
CompareType:string
CompareValue:
{
Value:number
}
}
</script>

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

{{ node.TargetPropertyType }} is
<em>{{ node.CompareType ?? "Equal" }}</em> to
<em>{{ node.CompareValue.Value ?? 0 }}</em>

</BlockLayout>
</template>

<style scoped>
</style>
31 changes: 31 additions & 0 deletions src/gamecore/tasks/SetEntityActionState.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<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
UniqueName?:string
ActionState?:boolean
}
</script>

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

{{ node.ActionState === false ? "Disable" : "Enable" }}
<template v-if="node.TargetType">
<em><EvaluateTargetType :target="node.TargetType" /></em>'s
</template>
action
<template v-if="node.UniqueName">
with name <em>{{ node.UniqueName }}</em>
</template>

</BlockLayout>
</template>

<style scoped>
</style>

0 comments on commit e7fc596

Please sign in to comment.