-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
167 changed files
with
898 additions
and
890 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<script setup lang="ts"> | ||
import { defineAsyncComponent, } from 'vue' | ||
import { GamecoreTask, } from '@/sources/gamecore'; | ||
import { taskTypeToComponentName, } from '@/common/common'; | ||
const props = defineProps<{node:GamecoreTask}>() | ||
const taskName = taskTypeToComponentName(props.node.$type) | ||
const taskComponent = defineAsyncComponent({ | ||
loader: async () => | ||
{ | ||
try { return await import(`./tasks/${taskName}.vue`) } | ||
catch (error:any) | ||
{ | ||
if (!error.toString().includes('Unknown variable dynamic import')) | ||
console.error(error) | ||
return await import(`./MissingTask.vue`) | ||
} | ||
}, | ||
}) | ||
const inversibleNode = props.node as unknown as | ||
{ | ||
Inverse:boolean | ||
} | ||
</script> | ||
|
||
<template> | ||
<component :is="taskComponent" :node="node" :class="inversibleNode.Inverse ? 'inverted' : ''" /> | ||
</template> | ||
|
||
<style scoped> | ||
</style> |
8 changes: 4 additions & 4 deletions
8
src/views/gamecore/EvaluateExpression.vue → src/gamecore/EvaluateExpression.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<script setup lang="ts"> | ||
import { GamecoreTask, } from '@/sources/gamecore'; | ||
import { cleanupTaskName, } from '@/common/common'; | ||
import BlockLayout from '@/components/BlockLayout.vue'; | ||
defineProps<{node:GamecoreTask}>() | ||
</script> | ||
|
||
<template> | ||
<BlockLayout :source="node"> | ||
<span class="notimplemented">{{ cleanupTaskName(node.$type) }}</span> | ||
</BlockLayout> | ||
</template> | ||
|
||
<style scoped> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 '../AnyTask.vue'; | ||
const props = defineProps<{node:GamecoreTask}>() | ||
const node = props.node as unknown as | ||
{ | ||
PredicateList:GamecoreTask[] | ||
} | ||
</script> | ||
|
||
<template> | ||
<BlockLayout :source="node"> | ||
<span class="flow">All</span> | ||
<template #content> | ||
<AnyTask v-for="predicate in node.PredicateList" :node="predicate" /> | ||
</template> | ||
</BlockLayout> | ||
</template> | ||
|
||
<style scoped> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 '../AnyTask.vue'; | ||
const props = defineProps<{node:GamecoreTask}>() | ||
const node = props.node as unknown as | ||
{ | ||
PredicateList:GamecoreTask[] | ||
} | ||
</script> | ||
|
||
<template> | ||
<BlockLayout :source="node"> | ||
<span class="flow">Any</span> | ||
<template #content> | ||
<AnyTask v-for="predicate in node.PredicateList" :node="predicate" /> | ||
</template> | ||
</BlockLayout> | ||
</template> | ||
|
||
<style scoped> | ||
</style> |
8 changes: 4 additions & 4 deletions
8
src/views/gamecore/blocks/ByAttackType.vue → src/gamecore/tasks/ByAttackType.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...iews/gamecore/blocks/ByAvatarBaseType.vue → src/gamecore/tasks/ByAvatarBaseType.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...gamecore/blocks/ByCharacterDamageType.vue → src/gamecore/tasks/ByCharacterDamageType.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...ecore/blocks/ByCompareAbilityProperty.vue → ...mecore/tasks/ByCompareAbilityProperty.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
src/views/gamecore/blocks/ByCompareBP.vue → src/gamecore/tasks/ByCompareBP.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...ecore/blocks/ByCompareCharacterNumber.vue → ...mecore/tasks/ByCompareCharacterNumber.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...gamecore/blocks/ByCompareDynamicValue.vue → src/gamecore/tasks/ByCompareDynamicValue.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
src/views/gamecore/blocks/ByCompareHP.vue → src/gamecore/tasks/ByCompareHP.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...iews/gamecore/blocks/ByCompareHPRatio.vue → src/gamecore/tasks/ByCompareHPRatio.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.