42 lines
850 B
Python
42 lines
850 B
Python
|
import typing as typ
|
||
|
|
||
|
import pydantic as pyd
|
||
|
|
||
|
from .. import base
|
||
|
from ... import contracts
|
||
|
|
||
|
####################
|
||
|
# - Blender Socket
|
||
|
####################
|
||
|
class PhysicalForceBLSocket(base.BLSocket):
|
||
|
socket_type = contracts.SocketType.PhysicalForce
|
||
|
bl_label = "PhysicalForce"
|
||
|
|
||
|
####################
|
||
|
# - Default Value
|
||
|
####################
|
||
|
@property
|
||
|
def default_value(self) -> None:
|
||
|
pass
|
||
|
|
||
|
@default_value.setter
|
||
|
def default_value(self, value: typ.Any) -> None:
|
||
|
pass
|
||
|
|
||
|
####################
|
||
|
# - Socket Configuration
|
||
|
####################
|
||
|
class PhysicalForceSocketDef(pyd.BaseModel):
|
||
|
socket_type: contracts.SocketType = contracts.SocketType.PhysicalForce
|
||
|
label: str
|
||
|
|
||
|
def init(self, bl_socket: PhysicalForceBLSocket) -> None:
|
||
|
pass
|
||
|
|
||
|
####################
|
||
|
# - Blender Registration
|
||
|
####################
|
||
|
BL_REGISTER = [
|
||
|
PhysicalForceBLSocket,
|
||
|
]
|