Difference between revisions of "Resource (Object)"

From Screeps Wiki
Jump to navigation Jump to search
(Created page with "The Resource class represents a dropped pile of resources that requires a creep to pickup() to use. It will decay if it is not picked up soon enough. == Finding Resource obje...")
 
(categorized)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
  +
{{stub}}
  +
[[Category:In-Game Objects]]
  +
 
The Resource class represents a dropped pile of resources that requires a creep to pickup() to use. It will decay if it is not picked up soon enough.
 
The Resource class represents a dropped pile of resources that requires a creep to pickup() to use. It will decay if it is not picked up soon enough.
   
 
== Finding Resource objects ==
 
== Finding Resource objects ==
   
You will need to use one of the [[Find Methods|'''find''']] methods of either a [Room] object, or a [RoomPosition] object to programmatically access either an array of them or just one.
+
You will need to use one of the [[Find Methods|'''find''']] methods of either a [[Room]] object, or a [[RoomPosition]] object to programmatically access either an array of them or just one.
  +
[[Category:Game Knowledge]]

Latest revision as of 12:32, 28 October 2020

This article is a stub. You can help Screeps Wiki by editing to add more information.

The Resource class represents a dropped pile of resources that requires a creep to pickup() to use. It will decay if it is not picked up soon enough.

Finding Resource objects[edit | edit source]

You will need to use one of the find methods of either a Room object, or a RoomPosition object to programmatically access either an array of them or just one.