Table of Contents
Behavior extensions for Entities
public static class EntityBehaviorExt
Inheritance System.Object EntityBehaviorExt
Add a Behavior to this
public static void AddBehavior<T>(this Entity entity, T behavior)
where T : Model;
T
The Behavior you want to add
entity
Il2CppAssets.Scripts.Simulation.Objects.Entity
behavior
T
Return the first Behavior of type T
public static T GetBehavior<T>(this Entity entity)
where T : Model;
T
The Behavior you want
entity
Il2CppAssets.Scripts.Simulation.Objects.Entity
Return all Behaviors of type T
public static System.Collections.Generic.List<T> GetBehaviors<T>(this Entity entity)
where T : Model;
T
The Behavior you want
entity
Il2CppAssets.Scripts.Simulation.Objects.Entity
System.Collections.Generic.List<T>
Check if this has a specific Behavior
public static bool HasBehavior<T>(this Entity entity)
where T : Model;
T
The Behavior you're checking for
entity
Il2CppAssets.Scripts.Simulation.Objects.Entity
Remove the first Behavior of type T
public static void RemoveBehavior<T>(this Entity entity, T behavior)
where T : Model;
T
The Behavior you want to remove
entity
Il2CppAssets.Scripts.Simulation.Objects.Entity
behavior
T
Remove the first Behavior of Type T
public static void RemoveBehavior<T>(this Entity entity)
where T : Model;
T
The Behavior you want to remove
entity
Il2CppAssets.Scripts.Simulation.Objects.Entity
Remove all Behaviors of type T
public static void RemoveBehaviors<T>(this Entity entity)
where T : Model;
T
The Behavior you want to remove