ORK Framework  2.27.1
API Documentation
ORKFramework.Behaviours.ItemCollector Class Reference
Inheritance diagram for ORKFramework.Behaviours.ItemCollector:
ORKFramework.Behaviours.BaseInteraction ORKFramework.Events.IEventStarter ORKFramework.Behaviours.BaseConditionComponent ORKFramework.Behaviours.SceneID

Public Member Functions

void SetOnGround ()
 
void SetDropInfo (DropInfo info)
 
void SetItemList (List< IShortcut > list)
 
void CheckSpawnedPrefab ()
 
override bool CanInteract (EventStartType type, GameObject gameObject)
 
override void StartEvent (GameObject startingObject)
 
void StartEvent (IEventStarter starter)
 
void CollectionFinished (bool ok)
 
bool HasItems ()
 
void TakeAll ()
 
void AddItem (IShortcut shortcut)
 
void DestroySpawnedPrefab ()
 
void EventEnded ()
 
void DontDestroy ()
 
void OnSceneLoaded ()
 
- Public Member Functions inherited from ORKFramework.Behaviours.BaseInteraction
IEnumerator StartEvent (GameObject startingObject, float delay)
 
bool CheckOrientation (GameObject gameObject)
 
virtual bool Interact ()
 
virtual void TouchInteract ()
 
virtual bool DropInteract (DragInfo drag)
 
bool CheckDrop (DragInfo drag)
 
bool CheckStartObject (GameObject gameObject)
 
virtual void KeyPress ()
 
virtual void UIStart ()
 
virtual void UIStart (GameObject startingObject)
 
bool ForwardInteract ()
 
void ForwardTouchInteract ()
 
bool ForwardDropInteract (DragInfo drag)
 
void ForwardOnTriggerEnter (Collider other)
 
void ForwardOnTriggerExit (Collider other)
 
void ForwardOnTriggerStay (Collider other)
 
void ForwardOnTriggerEnter2D (Collider2D other)
 
void ForwardOnTriggerExit2D (Collider2D other)
 
void ForwardOnTriggerStay2D (Collider2D other)
 
void ForwardOnCollisionEnter (Collision collision)
 
void ForwardOnCollisionExit (Collision collision)
 
void ForwardOnCollisionStay (Collision collision)
 
void ForwardOnCollisionEnter2D (Collision2D collision)
 
void ForwardOnCollisionExit2D (Collision2D collision)
 
void ForwardOnCollisionStay2D (Collision2D collision)
 
- Public Member Functions inherited from ORKFramework.Behaviours.BaseConditionComponent
bool CheckConditions ()
 
bool CheckVariables ()
 
void SetVariables ()
 

Public Attributes

CollectionType collectionType = CollectionType.Single
 
string boxID = ""
 
bool blockControl = true
 
bool destroyObject = true
 
bool useFaction = false
 
int factionID = 0
 
ORKGameEvent startGameEvent
 
bool startEventUsePrefab = true
 
ORKGameEvent endGameEvent
 
bool endEventUsePrefab = true
 
bool useCancelEndGameEvent = false
 
ORKGameEvent cancelEndGameEvent
 
ORKGameEvent collectedGameEvent
 
bool onGround = true
 
float distance = 100.0f
 
LayerMask layerMask = -1
 
bool setVariablesOnChance = false
 
bool destroyEmptyBox = false
 
bool showDialogue = true
 
bool showNotification = true
 
bool showConsole = true
 
bool useLoot = false
 
bool autoTakeAll = false
 
int lootID = 0
 
ItemGainSimple [] item = new ItemGainSimple[] {new ItemGainSimple()}
 
bool spawnPrefab = true
 
bool doMount = false
 
MountSettings mount = new MountSettings()
 
bool spawnUseConditions = false
 
bool repeatCheckSpawn = false
 
float repeatCheckTime = 0.0f
 
- Public Attributes inherited from ORKFramework.Behaviours.BaseInteraction
EventStartType startType = EventStartType.None
 
bool inBlockedControl = false
 
string customType = ""
 
float autoStartAfter = 0
 
bool allowClick = true
 
bool overrideClickDistance = false
 
float maxClickDistance = 3
 
bool useMoveToInteraction = true
 
GameObject destinationObject
 
bool overrideInteractionRadius = false
 
float interactionRadius = 1
 
bool overrideStopDistance = false
 
float stopDistance = 1
 
bool overrideMoveToSpeed = false
 
MoveSpeed moveToSpeed
 
int keyToPress = 0
 
bool keyPressInTrigger = false
 
bool keyPressWhileColliding = false
 
EventDropType dropType = EventDropType.Item
 
ItemGainSimple dropItem = new ItemGainSimple()
 
AbilitySelection dropAbility = new AbilitySelection()
 
bool consumeDrop = false
 
bool startByCollider = true
 
bool startByTrigger = true
 
bool startByRootObject = false
 
bool useOtherObject = false
 
EventStartObject startObjectCheck
 
HorizontalPlaneType horizontalPlane = HorizontalPlaneType.XZ
 
bool useFront = true
 
bool useBack = true
 
bool useLeft = true
 
bool useRight = true
 
- Public Attributes inherited from ORKFramework.Behaviours.BaseConditionComponent
bool autoDestroy = true
 
bool repeatDestroy = false
 
float destroyCheckTime = 1
 
bool checkObjectVariables = false
 
VariableCondition variableCondition = new VariableCondition()
 
bool setObjectVariables = false
 
VariableSetter variableSetter = new VariableSetter()
 
QuestCondition questCondition = new QuestCondition()
 
- Public Attributes inherited from ORKFramework.Behaviours.SceneID
bool useSceneID = true
 
int sceneID = -1
 

Protected Member Functions

override void Update ()
 
void OnDisable ()
 
- Protected Member Functions inherited from ORKFramework.Behaviours.BaseInteraction
virtual void OnEnable ()
 
void AutoStart ()
 
void DoAutoStart ()
 
void StartMoveToInteraction (GameObject player)
 
- Protected Member Functions inherited from ORKFramework.Behaviours.BaseConditionComponent
bool CheckAutoDestroy ()
 
void AutoDestroy ()
 

Properties

override InteractionType Type [get]
 
List< IShortcutItemList [get]
 
GameObject GameObject [get]
 
- Properties inherited from ORKFramework.Behaviours.BaseInteraction
bool EventStarted [get]
 
float?? MoveDestinationOffset [get]
 
abstract InteractionType Type [get]
 
- Properties inherited from ORKFramework.Events.IEventStarter
GameObject GameObject [get]
 

Additional Inherited Members

- Protected Attributes inherited from ORKFramework.Behaviours.BaseInteraction
int isInTrigger = 0
 
int isColliding = 0
 
bool eventStarted = false
 
bool registered = false
 
- Protected Attributes inherited from ORKFramework.Behaviours.BaseConditionComponent
bool isInvoking = false