-
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.
Convert components to use composition api
Done to ease the move to Vue 3. Also started changing the style of engine scripts, including eliminating a number of private fields, due to Vue's proxies not shadowing private fields, resulting in incompatible types.
- Loading branch information
Showing
27 changed files
with
1,302 additions
and
11,115 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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 |
---|---|---|
@@ -1,28 +1,23 @@ | ||
<template> | ||
<div id="techList"> | ||
<template v-for="(tech, key) of game.TechnologyTree.Technologies"> | ||
<template v-for="(tech, key) of game.TechnologyTree.technologies"> | ||
<TechBox | ||
:game="game" | ||
:tech="tech" | ||
:key="key" | ||
v-if="tech.IsVisible" | ||
v-if="tech.isVisible" | ||
></TechBox> | ||
</template> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { Component, Prop, Vue } from "vue-property-decorator"; | ||
<script setup lang="ts"> | ||
import { Game } from "../scripts/Core/Game"; | ||
import TechBox from "./TechBox.vue"; | ||
@Component({ | ||
components: { TechBox }, | ||
}) | ||
export default class ToolsList extends Vue { | ||
@Prop() game!: Game; | ||
} | ||
defineProps<{ | ||
game: Game; | ||
}>(); | ||
</script> | ||
|
||
<style lang="scss"></style> |
Oops, something went wrong.