public override void processInput(int _event, int[] args) { SimData simData = AppEngine.getCanvas().getSimData(); if (this.m_state != 0) { return; } base.processInput(_event, args); switch (this.m_type) { case 0: if (this.m_subType == -1) { if (!Scene.checkCommand(_event, args, int.MinValue)) { break; } int index = args[2]; this.setSubType(10, simData.getRelationshipNthItem(index)); break; } if (!Scene.checkCommand(_event, args, 1048576)) { break; } this.setType(this.m_type); break; case 3: if (!Scene.checkCommand(_event, args, 16384)) { break; } simData.dreamToPromise(); break; case 6: if (this.m_subType == -1) { if (!Scene.checkCommand(_event, args, int.MinValue)) { break; } int index = args[2]; this.setSubType(11, simData.getInventoryNthItem(index)); break; } if (!Scene.checkCommand(_event, args, 1048576)) { break; } this.setType(this.m_type); break; } }