Karana.KUtils.PrefabProtocols#

Typing protocols used for checking Prefab compatibility.

Classes#

GravityProtocol

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

Module Contents#

class Karana.KUtils.PrefabProtocols.GravityProtocol[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