IAccuracyHandlerCC

This interface is designed to manage character accuracy in the game. It inherits from ICharacterComponent and includes the following methods:

  • GetAccuracyMod(): Returns the accuracy modifier, which can be used to adjust how precise a character's actions are.

  • SetBaseAccuracy(float accuracy): Sets the base accuracy value for the character, allowing for dynamic adjustments based on game mechanics.


NullAccuracyHandler Class

This class implements the IAccuracyHandlerCC interface as a null or placeholder handler for accuracy. It serves as a default option when no specific accuracy handler is required. Key features include:

  • gameObject: Always returns null, indicating no associated game object.

  • transform: Always returns null, as there is no associated transform.

  • enabled: Always true; does not perform any operations.

  • GetAccuracyMod(): Returns a default accuracy modifier of 1f, implying no change.

  • SetBaseAccuracy(float accuracy): Does nothing, as this handler does not manage accuracy.

Last updated