public void trackOptionToggle(int stringId, bool enabled) { int eventId = -1; switch (stringId) { case 67: eventId = 221; break; case 68: eventId = 222; break; case 70: eventId = 223; break; case 71: eventId = 224; break; } if (eventId == -1) { return; } string str = enabled ? "on" : "off"; EASpywareManager.getInstance().logEvent(eventId, str); }
public void trackJobChange() { int simCareer = AppEngine.getCanvas().getSimData().getSimCareer(0); if (simCareer == -1) { EASpywareManager.getInstance().logEvent(256, "unemployed"); } else { EASpywareManager.getInstance().logEvent(256, GlobalConstants.LOOKUP_CAREER[simCareer], string.Concat((object)AppEngine.getCanvas().getSimData().getSimCareerLevel(0))); } }
public void setEnabled(bool enabled) { EASpywareManager.getInstance().setEnabled(enabled); }
public void trackBuyItem(int itemId, int qty) { EASpywareManager.getInstance().logEvent(247, AppEngine.getCanvas().getSimWorld().getItemSpywareId(itemId), string.Concat((object)qty)); }
public void trackBuyWall(int wallId) { EASpywareManager.getInstance().logEvent(244, GlobalConstants.LOOKUP_WALL[wallId]); }
public void trackAction(int actionId) { EASpywareManager.getInstance().logEvent(257, GlobalConstants.LOOKUP_ACTION[actionId]); }
public void trackMiniGameFinish(string type, bool success, string result) { EASpywareManager.getInstance().logEvent(success ? 250 : 251, type, result); }
public void trackStoreClose() { EASpywareManager.getInstance().logEvent(248, this.m_lastStore); this.m_lastStore = (string)null; }
private void trackGotoStreetside(bool arrive) { string str = "STREETSIDE"; EASpywareManager.getInstance().logEvent(arrive ? 253 : 254, str); }
public void trackEndGameDeath(string deathType) { EASpywareManager.getInstance().logEvent((int)byte.MaxValue, AppEngine.getCanvas().getSimName(), deathType); this.trackPlayTime(); }
public void trackEndGame() { EASpywareManager.getInstance().logEvent(231, AppEngine.getCanvas().getSimName()); this.trackPlayTime(); }
public void trackStartGame() { this.m_gameStart = JSystem.currentTimeMillis(); EASpywareManager.getInstance().logEvent(229, AppEngine.getCanvas().getSimName(), string.Concat((object)AppEngine.getCanvas().getRMSGameSlotIndex())); }
public void trackResetData() { EASpywareManager.getInstance().logEvent(228); }
public void trackDeleteGame(int slot, string simName) { string slotStr = string.Concat((object)slot); EASpywareManager.getInstance().logEvent(227, simName, slotStr); }
public void trackOptionLanguage() { EASpywareManager.getInstance().logEvent(225, LocaleManager.getInstance().getLocale()); }
private void trackGotoTown(bool arrive) { string str = "TOWNMAP"; EASpywareManager.getInstance().logEvent(arrive ? 253 : 254, str); }
private void trackGotoLakeside(bool arrive) { string str = "LAKESIDE"; EASpywareManager.getInstance().logEvent(arrive ? 253 : 254, str); }
private void trackPlayTime() { EASpywareManager.getInstance().logEventDuration(230, (int)((JSystem.currentTimeMillis() - this.m_gameStart) / 1000L)); }
public void trackStoreOpen(string storeName) { this.m_lastStore = storeName; EASpywareManager.getInstance().logEvent(246, storeName); }
public void trackImport() { EASpywareManager.getInstance().logEvent(443, AppEngine.getCanvas().getSimName(), string.Concat((object)AppEngine.getCanvas().getRMSGameSlotIndex())); }
public void trackMiniGameStart(string type) { EASpywareManager.getInstance().logEvent(249, type); }
public void trackMoreGamesOpen() { EASpywareManager.getInstance().logEvent(461); }
public void trackGoalComplete(int goalId) { EASpywareManager.getInstance().logEvent(252, GlobalConstants.LOOKUP_DREAM[goalId]); }
public void trackMoreGamesClose() { EASpywareManager.getInstance().logEvent(462); }
public void trackMoreGamesAppLaunch() { EASpywareManager.getInstance().logEvent(532); }
public void trackCAS(bool edited) { EASpywareManager instance = EASpywareManager.getInstance(); SimData simData = AppEngine.getCanvas().getSimData(); string simName = AppEngine.getCanvas().getSimName(); string slotStr = string.Concat((object)AppEngine.getCanvas().getRMSGameSlotIndex()); int simAttributeUnique1 = simData.getSimAttributeUnique(0, 0); int simAttributeUnique2 = simData.getSimAttributeUnique(0, 1); int simAttributeUnique3 = simData.getSimAttributeUnique(0, 2); int simAttributeUnique4 = simData.getSimAttributeUnique(0, 3); int simAttributeUnique5 = simData.getSimAttributeUnique(0, 4); int simAttributeUnique6 = simData.getSimAttributeUnique(0, 11); int simAttributeUnique7 = simData.getSimAttributeUnique(0, 12); int simAttributeUnique8 = simData.getSimAttributeUnique(0, 5); int simAttributeUnique9 = simData.getSimAttributeUnique(0, 6); int simAttributeUnique10 = simData.getSimAttributeUnique(0, 7); int simAttributeUnique11 = simData.getSimAttributeUnique(0, 8); int simAttributeUnique12 = simData.getSimAttributeUnique(0, 9); int simAttributeUnique13 = simData.getSimAttributeUnique(0, 10); if (!edited) { instance.logEvent(241, simName, slotStr); instance.logEvent(226, simName, slotStr); instance.logEvent(235, simAttributeUnique1 == 0 ? "male" : "female"); instance.logEvent(236, simAttributeUnique2); instance.logEvent(232, simAttributeUnique3, simAttributeUnique4); instance.logEvent(441, simAttributeUnique6, simAttributeUnique7); instance.logEvent(234, simAttributeUnique5); instance.logEvent(233, simAttributeUnique8, simAttributeUnique9); instance.logEvent(237, simAttributeUnique10, simAttributeUnique11); instance.logEvent(238, simAttributeUnique12, simAttributeUnique13); int persona = simData.getPersona(); string str1 = GlobalConstants.LOOKUP_PERSONA[persona]; instance.logEvent(239, str1); int simTrait1 = simData.getSimTrait(0, 0); string str2 = GlobalConstants.LOOKUP_TRAIT[simTrait1]; instance.logEvent(240, str2); int simTrait2 = simData.getSimTrait(0, 1); string str3 = GlobalConstants.LOOKUP_TRAIT[simTrait2]; instance.logEvent(240, str3); int simTrait3 = simData.getSimTrait(0, 2); string str4 = GlobalConstants.LOOKUP_TRAIT[simTrait3]; instance.logEvent(240, str4); int simTrait4 = simData.getSimTrait(0, 3); string str5 = GlobalConstants.LOOKUP_TRAIT[simTrait4]; instance.logEvent(240, str5); int simTrait5 = simData.getSimTrait(0, 4); string str6 = GlobalConstants.LOOKUP_TRAIT[simTrait5]; instance.logEvent(240, str6); } else { instance.logEvent(242, simName, slotStr); if (this.m_casHairType != simAttributeUnique3 || this.m_casHairColor != simAttributeUnique4) { instance.logEvent(232, simAttributeUnique3, simAttributeUnique4); } if (this.m_casHeadType != simAttributeUnique6 || this.m_casHeadColor != simAttributeUnique7) { instance.logEvent(441, simAttributeUnique6, simAttributeUnique7); } if (this.m_casTorsoType != simAttributeUnique8 || this.m_casTorsoColor != simAttributeUnique9) { instance.logEvent(233, simAttributeUnique8, simAttributeUnique9); } if (this.m_casLegsType != simAttributeUnique10 || this.m_casLegsColor != simAttributeUnique11) { instance.logEvent(237, simAttributeUnique10, simAttributeUnique11); } if (this.m_casFeetType == simAttributeUnique12 && this.m_casFeetColor == simAttributeUnique13) { return; } instance.logEvent(238, simAttributeUnique12, simAttributeUnique13); } }
public void trackBuyFloor(int floorId) { EASpywareManager.getInstance().logEvent(243, GlobalConstants.LOOKUP_FLOOR[floorId]); }
private void trackGotoHouse(int houseId, bool arrive) { string str = GlobalConstants.LOOKUP_HOUSE[houseId]; EASpywareManager.getInstance().logEvent(arrive ? 253 : 254, str); }
public void trackBuyObject(int objectId) { EASpywareManager.getInstance().logEvent(247, AppEngine.getCanvas().getSimWorld().getObjectSpywareId(objectId)); }
public bool isEnabled() { return(EASpywareManager.getInstance().isEnabled()); }