Skip to content

Customizing The System

IsaacMulcahy edited this page Aug 14, 2022 · 12 revisions

Animation Controller

The animation controller is used to animate the NPC within the scene.

To Replace

Required Parameters

  • Moving : Boolean
  • Dynamic : Boolean

References

  • AIController - animator.SetBool("Moving", moving);
  • AIController - animator.SetBool("Dynamic", dynamic);

Game Manager / Timing

The Game Manager is a simple service which is used for the time of day and the passage of time. The time is 0-2400 and has to stay with this range to keep in in keeping with the requirements set in the Flowchart Editor.

To Replace

Required Functions

  • getTime() : return float;

References

  • AIDataboard has a static reference to the GameManager - Set by search in Awake()
  • Civil Manager has a Reference which is used on AIDataBoard.setupCharacter() function Editor
  • AIManager loads one from Resources when using Auto Setup scene (System/Objects/Game Manager)
  • TimeWindow has a static reference to the gameManager

Item System

The Item system is used to allow the project to identify objects within the scene. This uses currently ITEMS (An enum for names) as well as the Item class

To Replace

Item

Required Functions

  • IsInUse : Boolean
  • SetInUse(bool update) : Boolean

References

Action Node

  • ItemNeeded
  • ItemOutput
AI Databoard
  • currentGoalObj
  • getGoalItem()
  • setGoalItem()
Actions
  • Locate()
  • LocateOwned()
  • LocateRandomOwned()
  • LocateItemInZone()
  • PickUp()
  • Mount()
Looking Mutations
  • GetWorkplaceObjects()
  • GetItems()

Flowchart Connection

  • RequirementGeneral

Requirement Widget (Editor)

  • RequirementGeneral

Action Node (Editor)

  • Action
  • Item Needed
  • Item Output