|
|
(35 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | =Sandbox.ModAPI.Ingame.IMyAssembler=
| + | #REDIRECT [[API:Sandbox.ModAPI.Ingame.IMyAssembler]] |
− | This interface is used to work with [[Assembler]] blocks.
| |
− | ==Namespace==
| |
− | [[Sandbox.ModAPI.Ingame]] | |
− | ==Assembly==
| |
− | [[Sandbox.Common]] (Sandbox.Common.dll)
| |
− | ==Syntax==
| |
− | <syntaxhighlight lang="csharp">
| |
− | public interface IMyAssembler : IMyProductionBlock, IMyFunctionalBlock, IMyTerminalBlock, IMyCubeBlock, IMyEntity
| |
− | </syntaxhighlight>
| |
− | ==Methods==
| |
− | ===GetActions===
| |
− | <syntaxhighlight lang="csharp">
| |
− | void GetActions(List<ITerminalAction> resultList, Func<ITerminalAction, bool> collect = null)
| |
− | </syntaxhighlight>
| |
− | This returns an ITerminalAction list containing a list of all valid actions for the block.
| |
− | | |
− | ===GetActionWithName===
| |
− | <syntaxhighlight lang="csharp">
| |
− | ITerminalAction GetActionWithName(string name)
| |
− | </syntaxhighlight>
| |
− | This searches the block for an associated action corresponding to the specified name.
| |
− | | |
− | ===GetOwnerFactionTag===
| |
− | <syntaxhighlight lang="csharp">
| |
− | string GetOwnerFactionTag()
| |
− | </syntaxhighlight>
| |
− | This returns a string with the faction tag of the associated owner.
| |
− | | |
− | ===GetPlayerRelationToOwner===
| |
− | <syntaxhighlight lang="csharp">
| |
− | MyRelationsBetweenPlayerAndBlock GetUserRelationToOwner(long playerId)
| |
− | </syntaxhighlight>
| |
− | | |
− | ===GetUserRelationToOwner===
| |
− | <syntaxhighlight lang="csharp">
| |
− | MyRelationsBetweenPlayerAndBlock GetUserRelationToOWner(long playerId)
| |
− | </syntaxhighlight>
| |
− | | |
− | ===HasLocalPlayerAccess===
| |
− | <syntaxhighlight lang="csharp">
| |
− | bool HasLocalPlayerAccess()
| |
− | </syntaxhighlight>
| |
− | | |
− | ===HasPlayerAccess===
| |
− | <syntaxhighlight lang="csharp">
| |
− | bool HasPlayerAccess(long playerId)
| |
− | </syntaxhighlight>
| |
− | | |
− | ===MoveQueueItemRequest===
| |
− | <syntaxhighlight lang="csharp">
| |
− | void MoveQueueItemRequest(uint queueItemId, int targetIdx)
| |
− | </syntaxhighlight>
| |
− | | |
− | ===RemoveQueueItemRequest===
| |
− | <syntaxhighlight lang="csharp">
| |
− | void RemoveQueueItemRequest(int itemIdx)
| |
− | </syntaxhighlight>
| |
− | | |
− | ===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]]
| |