Difference between revisions of "Sandbox.ModAPI.Ingame.IMyAssembler"

From Space Engineers Wiki
Jump to: navigation, search
(MoveQueueItemRequest)
(RemoveQueueItemRequest)
Line 54: Line 54:
  
 
===RemoveQueueItemRequest===
 
===RemoveQueueItemRequest===
 +
<syntaxhighlight lang="csharp">
 +
void RemoveQueueItemRequest(int itemIdx)
 +
</syntaxhighlight>
 +
 
===RequestEnable===
 
===RequestEnable===
 
===RequestShowOnHUD===
 
===RequestShowOnHUD===

Revision as of 04:09, 12 January 2015

Sandbox.ModAPI.Ingame.IMyAssembler

This interface is used to work with Assembler blocks.

Namespace

Sandbox.ModAPI.Ingame

Assembly

Sandbox.Common (Sandbox.Common.dll)

Syntax

public interface IMyAssembler : IMyProductionBlock, IMyFunctionalBlock, IMyTerminalBlock, IMyCubeBlock, IMyEntity

Methods

GetActions

void GetActions(List<ITerminalAction> resultList, Func<ITerminalAction, bool> collect = null)

This returns an ITerminalAction list containing a list of all valid actions for the block.

GetActionWithName

ITerminalAction GetActionWithName(string name)

This searches the block for an associated action corresponding to the specified name.

GetOwnerFactionTag

string GetOwnerFactionTag()

This returns a string with the faction tag of the associated owner.

GetPlayerRelationToOwner

MyRelationsBetweenPlayerAndBlock GetUserRelationToOwner(long playerId)

GetUserRelationToOwner

MyRelationsBetweenPlayerAndBlock GetUserRelationToOWner(long playerId)

HasLocalPlayerAccess

bool HasLocalPlayerAccess()

HasPlayerAccess

bool HasPlayerAccess(long playerId)

MoveQueueItemRequest

void MoveQueueItemRequest(uint queueItemId, int targetIdx)

RemoveQueueItemRequest

void RemoveQueueItemRequest(int itemIdx)

RequestEnable

RequestShowOnHUD

SearchActionsOfName

SetCustomName

UpdateIsWorking

UpdateVisual

Properties

BlockDefinition

CheckConnectionAllowed

CubeGrid

CustomName

CustomNameWithFaction

DefinitionDisplayNameText

DetailedInfo

DisassembleRatio

DisplayNameText

Enabled

IsBeingHacked

IsFunctional

IsProducing

IsQueueEmpty

IsWorking

Max

Min

NextItemId

NumberInGrid

Orientation

OwnerId

Position

ShowOnHUD

UseConveyorSystem

Cateogry:Sandbox.ModAPI.Ingame