Extension methods for common usage
◆ GetGlobalOrganicDirection()
static Vec2 TaleWorlds.MountAndBlade.MBExtensions.GetGlobalOrganicDirection |
( |
this ColumnFormation |
columnFormation | ) |
|
|
static |
◆ GetGlobalHeadDirection()
static Vec2 TaleWorlds.MountAndBlade.MBExtensions.GetGlobalHeadDirection |
( |
this ColumnFormation |
columnFormation | ) |
|
|
static |
◆ FindAllWithType< T >() [1/2]
static IEnumerable< T > TaleWorlds.MountAndBlade.MBExtensions.FindAllWithType< T > |
( |
this IEnumerable< GameEntity > |
entities | ) |
|
|
static |
- Template Parameters
-
T | Type of the requested script components. |
- Parameters
-
- Returns
- List of script components with specified type.
- Type Constraints
-
T | : | ScriptComponentBehavior | |
◆ FindAllWithType< T >() [2/2]
static IEnumerable< T > TaleWorlds.MountAndBlade.MBExtensions.FindAllWithType< T > |
( |
this IEnumerable< MissionObject > |
missionObjects | ) |
|
|
static |
◆ FindAllWithCompatibleType() [1/2]
static List< GameEntity > TaleWorlds.MountAndBlade.MBExtensions.FindAllWithCompatibleType |
( |
this IEnumerable< GameEntity > |
sceneProps, |
|
|
params Type[] |
types |
|
) |
| |
|
static |
- Parameters
-
sceneProps | |
types | Compatible types of the requested scene props. |
- Returns
- List of scene props which are compatible with the specified types.
◆ FindAllWithCompatibleType() [2/2]
static List< MissionObject > TaleWorlds.MountAndBlade.MBExtensions.FindAllWithCompatibleType |
( |
this IEnumerable< MissionObject > |
missionObjects, |
|
|
params Type[] |
types |
|
) |
| |
|
static |
◆ CollectObjects< T >()
static List< T > TaleWorlds.MountAndBlade.MBExtensions.CollectObjects< T > |
( |
this GameEntity |
entity | ) |
|
|
static |
- Template Parameters
-
T | The type of objects to be collected. |
- Parameters
-
entity | The root entity from which the objects will be collected from. |
- Returns
- Returns collected objects.
- Type Constraints
-
T | : | ScriptComponentBehavior | |
◆ CollectObjectsWithTag< T >()
static List< T > TaleWorlds.MountAndBlade.MBExtensions.CollectObjectsWithTag< T > |
( |
this GameEntity |
entity, |
|
|
string |
tag |
|
) |
| |
|
static |
- Template Parameters
-
T | The type of objects to be collected. |
- Parameters
-
entity | The root entity from which the objects will be collected from. |
tag | Tag that is required on the child. |
- Returns
- Returns collected objects.
- Type Constraints
-
T | : | ScriptComponentBehavior | |
◆ CollectChildrenEntitiesWithTag()
static List< GameEntity > TaleWorlds.MountAndBlade.MBExtensions.CollectChildrenEntitiesWithTag |
( |
this GameEntity |
entity, |
|
|
string |
tag |
|
) |
| |
|
static |
◆ GetFirstChildEntityWithTag()
static GameEntity TaleWorlds.MountAndBlade.MBExtensions.GetFirstChildEntityWithTag |
( |
this GameEntity |
entity, |
|
|
string |
tag |
|
) |
| |
|
static |
◆ GetFirstScriptInFamilyDescending< T >()
static T TaleWorlds.MountAndBlade.MBExtensions.GetFirstScriptInFamilyDescending< T > |
( |
this GameEntity |
entity | ) |
|
|
static |
- Type Constraints
-
T | : | ScriptComponentBehavior | |
◆ HasParentOfType()
static bool TaleWorlds.MountAndBlade.MBExtensions.HasParentOfType |
( |
this GameEntity |
e, |
|
|
Type |
t |
|
) |
| |
|
static |
◆ ElementAtOrValue< TSource >()
static TSource TaleWorlds.MountAndBlade.MBExtensions.ElementAtOrValue< TSource > |
( |
this IEnumerable< TSource > |
source, |
|
|
int |
index, |
|
|
TSource |
value |
|
) |
| |
|
static |
◆ IsOpponentOf()