Trait red4ext_rs::ScriptClass

source ·
pub unsafe trait ScriptClass: Sized {
    type Kind: ClassKind<Self>;

    const NAME: &'static str;
}
Expand description

A trait for types that represent script classes.

§Safety

Implementors must ensure that the type’s layout is compatible with the layout of the native type that has the specified name.

Required Associated Types§

source

type Kind: ClassKind<Self>

Required Associated Constants§

source

const NAME: &'static str

Object Safety§

This trait is not object safe.

Implementors§

source§

impl ScriptClass for IScriptable

§

type Kind = Native

source§

const NAME: &'static str = "IScriptable"

source§

impl ScriptClass for ISerializable

§

type Kind = Native

source§

const NAME: &'static str = "ISerializable"

source§

impl ScriptClass for ScriptableSystem

§

type Kind = Native

source§

const NAME: &'static str = "gameScriptableSystem"