Skip to content

Commit

Permalink
rename localRole => localLogic
Browse files Browse the repository at this point in the history
  • Loading branch information
huww98 committed Dec 30, 2023
1 parent aa04bf5 commit 2eb36ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/blueprint/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ export interface StationParameters {
storage: {
itemId: number;
max: number;
localRole: LogisticRole;
remoteRole: LogisticRole;
localLogic: LogisticRole;
remoteLogic: LogisticRole;
}[];
slots: {
dir: IODir;
Expand Down Expand Up @@ -231,8 +231,8 @@ function stationParamsParser(desc: typeof stationDesc): ParamParser<StationParam
for (let i = 0; i < desc.maxItemKind; i++) {
const s = p.storage[i];
setParam(a, base + i * stride + 0, s.itemId);
setParam(a, base + i * stride + 1, s.localRole);
setParam(a, base + i * stride + 2, s.remoteRole);
setParam(a, base + i * stride + 1, s.localLogic);
setParam(a, base + i * stride + 2, s.remoteLogic);
setParam(a, base + i * stride + 3, s.max);
}
} {
Expand Down Expand Up @@ -264,8 +264,8 @@ function stationParamsParser(desc: typeof stationDesc): ParamParser<StationParam
for (let i = 0; i < desc.maxItemKind; i++) {
result.storage.push({
itemId: getParam(a, base + i * stride + 0),
localRole: getParam(a, base + i * stride + 1),
remoteRole: getParam(a, base + i * stride + 2),
localLogic: getParam(a, base + i * stride + 1),
remoteLogic: getParam(a, base + i * stride + 2),
max: getParam(a, base + i * stride + 3),
});
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/StationInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<template v-if="s.itemId > 0">
<div class="num"><label>{{ t('货物上限') }}</label> {{s.max}}</div>
<div>
<div class="role" :class="roleClass.get(s.localRole)">{{ t('本地' + roleText.get(s.localRole)) }}</div>
<div v-if="inter" class="role" :class="roleClass.get(s.remoteRole)">{{ t('星际' + roleText.get(s.remoteRole)) }}</div>
<div class="role" :class="roleClass.get(s.localLogic)">{{ t('本地' + roleText.get(s.localLogic)) }}</div>
<div v-if="inter" class="role" :class="roleClass.get(s.remoteLogic)">{{ t('星际' + roleText.get(s.remoteLogic)) }}</div>
</div>
</template>
<div class="placeholder" v-else>{{ t('空栏位') }}</div>
Expand Down

0 comments on commit 2eb36ef

Please sign in to comment.