Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

registerNew

Description

Registers a new project type.

Arguments

1 table data

the data to register.

Example

local gameProject = {}
gameProject.id = "game_project"
gameProject.category = "game"
gameProject.isGame = true
gameProject.stages = {
	[1] = {
		tasks = { -- the table is empty, because the tasks are initialized completely elsewhere. this is left-over functionality which is deprecated

		}
	},
	
	[2] = {
		tasks = {
		},
	},
	
	[3] = {
		tasks = {
		}
	}
}

projectTypes:registerNew(gameProject)