C# 클래스 Economy.scripts.Support

파일 보기 프로젝트 열기: jpcsupplies/Economy_mod 1 사용 예제들

공개 메소드들

메소드 설명
FindLookAtEntity ( VRage.Game.ModAPI.Interfaces.IMyControllableEntity controlledEntity, bool findShips, bool findCubes, bool findPlayers, bool findAsteroids, bool findPlanets, bool findReplicable, bool ignoreProjection ) : IMyEntity
FindLookAtEntity ( VRage.Game.ModAPI.Interfaces.IMyControllableEntity controlledEntity, bool ignoreOccupiedGrid, bool ignoreProjection, IMyEntity &lookEntity, double &lookDistance, Vector3D &hitPoint, bool findShips, bool findCubes, bool findPlayers, bool findAsteroids, bool findPlanets, bool findReplicable ) : void
FindPhysicalParts ( string itemName, MyObjectBuilder_Base &objectBuilder, MyDefinitionBase>.Dictionary &options ) : bool

Find the physical object of the specified name or partial name.

FindRotorBase ( long entityId, IMyCubeGrid parent = null ) : IMyCubeBlock
InventoryAdd ( IMyInventory inventory, VRage.MyFixedPoint amount, MyDefinitionId definitionId ) : bool
InventoryDrop ( IMyEntity entity, VRage.MyFixedPoint amount, MyDefinitionId definitionId ) : void
ProducedType ( MyDefinitionId definitionId ) : MyObjectBuilder_Base
RangeCheck ( IMyPlayer player1, IMyPlayer player2 ) : bool

check the seller is in range of a valid trade region or player

비공개 메소드들

메소드 설명
BuildComponentLists ( ) : void

Builds a list of the in game components and their localized names for searching so that subsequent calls to FindPhysicalParts(...) don't have to build a lists every time.

메소드 상세

FindLookAtEntity() 공개 정적인 메소드

public static FindLookAtEntity ( VRage.Game.ModAPI.Interfaces.IMyControllableEntity controlledEntity, bool findShips, bool findCubes, bool findPlayers, bool findAsteroids, bool findPlanets, bool findReplicable, bool ignoreProjection ) : IMyEntity
controlledEntity VRage.Game.ModAPI.Interfaces.IMyControllableEntity
findShips bool
findCubes bool
findPlayers bool
findAsteroids bool
findPlanets bool
findReplicable bool
ignoreProjection bool
리턴 IMyEntity

FindLookAtEntity() 공개 정적인 메소드

public static FindLookAtEntity ( VRage.Game.ModAPI.Interfaces.IMyControllableEntity controlledEntity, bool ignoreOccupiedGrid, bool ignoreProjection, IMyEntity &lookEntity, double &lookDistance, Vector3D &hitPoint, bool findShips, bool findCubes, bool findPlayers, bool findAsteroids, bool findPlanets, bool findReplicable ) : void
controlledEntity VRage.Game.ModAPI.Interfaces.IMyControllableEntity
ignoreOccupiedGrid bool
ignoreProjection bool
lookEntity IMyEntity
lookDistance double
hitPoint Vector3D
findShips bool
findCubes bool
findPlayers bool
findAsteroids bool
findPlanets bool
findReplicable bool
리턴 void

FindPhysicalParts() 공개 정적인 메소드

Find the physical object of the specified name or partial name.
public static FindPhysicalParts ( string itemName, MyObjectBuilder_Base &objectBuilder, MyDefinitionBase>.Dictionary &options ) : bool
itemName string The name of the physical object to find.
objectBuilder MyObjectBuilder_Base The object builder of the physical object, ready for use.
options MyDefinitionBase>.Dictionary Returns a list of potential matches if there was more than one of the same or partial name.
리턴 bool

FindRotorBase() 공개 정적인 메소드

public static FindRotorBase ( long entityId, IMyCubeGrid parent = null ) : IMyCubeBlock
entityId long
parent IMyCubeGrid
리턴 IMyCubeBlock

InventoryAdd() 공개 정적인 메소드

public static InventoryAdd ( IMyInventory inventory, VRage.MyFixedPoint amount, MyDefinitionId definitionId ) : bool
inventory IMyInventory
amount VRage.MyFixedPoint
definitionId MyDefinitionId
리턴 bool

InventoryDrop() 공개 정적인 메소드

public static InventoryDrop ( IMyEntity entity, VRage.MyFixedPoint amount, MyDefinitionId definitionId ) : void
entity IMyEntity
amount VRage.MyFixedPoint
definitionId MyDefinitionId
리턴 void

ProducedType() 공개 정적인 메소드

public static ProducedType ( MyDefinitionId definitionId ) : MyObjectBuilder_Base
definitionId MyDefinitionId
리턴 MyObjectBuilder_Base

RangeCheck() 공개 정적인 메소드

check the seller is in range of a valid trade region or player
public static RangeCheck ( IMyPlayer player1, IMyPlayer player2 ) : bool
player1 IMyPlayer
player2 IMyPlayer
리턴 bool