Adds a pending logic piece. This is used by MMO game projects. The system will then go over the task IDs present in the pendingLogicPieces table and call the :verifyLogicPiece method on the taskTypeData of each such task ID.
Adds a pending logic piece. This is used by MMO game projects. The system will then go over the task IDs present in the pendingLogicPieces table and call the :verifyLogicPiece method on the taskTypeData of each such task ID.
1 string taskID
the ID of the task to verify.
taskTypes:registerNew({ id = "in_app_purchases", category = gameProject.MICROTRANSACTIONS_CATEGORY, display = _T("IN_APP_PURCHASES", "In-app purchases"), mmoComplexity = 1, platformWorkAffector = 0.45, multipleEmployees = true, workAmount = 100, workField = "software", minimumLevel = 20, specBoost = {id = "algorithms", boost = 1.15}, releaseDate = {year = 2003, month = 3}, requiresResearch = true, noIssues = false, issues = {"p0", "p1"}, qualityContribution = "gameplay", taskID = "game_task", optionalForStandard = true, stage = 2, logicID = "microtransactions_logic_piece", onFinish = function(self, taskObject) local projObj = taskObject:getProject() if projObj then projObj:addPendingLogicPiece(self.id) end end, verifyLogicPiece = function(self, gameProj) local piece = logicPieces.create(self.logicID) piece:setupLongevity(gameProj) gameProj:addLogicPiece(piece) end, canHaveTask = function(self, gameProj) return gameProject.MICROTRANSACTIONS_DEV_CATEGORIES[gameProj:getGameType()] end })