Skip to main content
P2 Engine
Advancing the state-of-the-art knowledge
Search form
Search
Main menu
Home
You are here
Home
»
P2Resource
»
Resource information
Navigation
Installation
Download examples
FAQ
Release Info
P2Reader
P2Generator
P2Project
P2Schedule
P2Resource
new
write_resource_data
copy_constructor
reset_resource_object
Resource information
add_resource
delete_resource
set_resource_type
get_resource_type
get_number_of_resources
Resource availability
Resource cost
P2Simulator
P2Tracking
Yet another project from
set_resource_type
Define the type of a resource (renewable/consumable).
Parameters:
I/O
Type
Name
Description
input
integer
ID
resource ID
input
integer
renewable
1 (renewable) or 0 (consumable)
Learn More:
Step inside
PMKC
.
Example:
function
(
)
io.write
(
'
\n
'
)
end
Class:
P2Resource