Show / Hide Table of Contents

Class GameActionExtensions

Extension for game actions.

Inheritance
System.Object
GameActionExtensions
Namespace: Eco.Gameplay.GameActions
Assembly: Eco.Gameplay.dll
Syntax
public static class GameActionExtensions : Object

Methods

AffectedDeeds(GameAction)

Check location permissions. Get all the affected plots. Some actions may affect multiple plots.

Declaration
public static IEnumerable<Deed> AffectedDeeds(this GameAction action)
Parameters
Type Name Description
GameAction action
Returns
Type Description
System.Collections.Generic.IEnumerable<Deed>

All(ISkillGameAction)

Declaration
public static IEnumerable<Item> All(this ISkillGameAction action)
Parameters
Type Name Description
ISkillGameAction action
Returns
Type Description
System.Collections.Generic.IEnumerable<Item>

Fill(GameAction, MultiblockActionContext, WrappedWorldPosition3i, Item)

Tries to fill action's fields with the provided data.

Declaration
public static GameAction Fill(this GameAction action, MultiblockActionContext context, WrappedWorldPosition3i position, Item itemUsed = null)
Parameters
Type Name Description
GameAction action
MultiblockActionContext context
WrappedWorldPosition3i position
Item itemUsed
Returns
Type Description
GameAction

Fill(GameAction, User, Item, WrappedWorldPosition3i, Nullable<AccessType>, Item)

Declaration
public static GameAction Fill(this GameAction action, User user, Item tool, WrappedWorldPosition3i position, Nullable<AccessType> access, Item itemUsed = null)
Parameters
Type Name Description
GameAction action
User user
Item tool
WrappedWorldPosition3i position
System.Nullable<AccessType> access
Item itemUsed
Returns
Type Description
GameAction
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾