fixed order

This commit is contained in:
Matei Adriel 2019-07-31 20:17:19 +03:00
parent 7ed9bb2f38
commit 8a51c5ad52
2 changed files with 7 additions and 4 deletions

View file

@ -12,6 +12,7 @@ import { CurrentLanguage } from '../../internalisation/stores/currentLanguage'
import { fromSimulationState } from '../../saving/helpers/fromState' import { fromSimulationState } from '../../saving/helpers/fromState'
import { cleanSimulation } from '../../simulation-actions/helpers/clean' import { cleanSimulation } from '../../simulation-actions/helpers/clean'
import { getSimulationState } from '../../saving/helpers/getState' import { getSimulationState } from '../../saving/helpers/getState'
import { categories } from '../../saving/data/categories'
/** /**
* Compiles a simulation into a logicGate * Compiles a simulation into a logicGate
@ -46,7 +47,8 @@ export const compileIc = (state: SimulationState) => {
outputs: { outputs: {
count: outputCount count: outputCount
} }
} },
category: categories.ic
} }
templateStore.set(name, result) templateStore.set(name, result)

View file

@ -1,8 +1,9 @@
export const categories = { export const categories = {
basic: 0, basic: 0,
io: 3,
math: 1, math: 1,
time: 2, time: 2,
advancedIo: 4, compressing: 3,
compressing: 5 io: 4,
advancedIo: 5,
ic: 6
} }