Karana.KUtils.PrefabInterfaces#

Typing protocols used for checking Prefab compatibility.

Classes#

GravityProviderInterface

Any Prefab that meets this protocol provides a method to get a GravityInterface.

Module Contents#

class Karana.KUtils.PrefabInterfaces.GravityProviderInterface[source]#

Bases: Protocol

Any Prefab that meets this protocol provides a method to get a GravityInterface.

getGravityInterface() Karana.Models.GravityInterface[source]#

Get the GravityInterface from the Prefab.

Returns:

The GravityInterface the Prefab is using.

Return type:

GravityInterface