C# Class Economy.scripts.Support

Afficher le fichier Open project: jpcsupplies/Economy_mod Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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.

Method Details

FindLookAtEntity() public static méthode

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
Résultat IMyEntity

FindLookAtEntity() public static méthode

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
Résultat void

FindPhysicalParts() public static méthode

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.
Résultat bool

FindRotorBase() public static méthode

public static FindRotorBase ( long entityId, IMyCubeGrid parent = null ) : IMyCubeBlock
entityId long
parent IMyCubeGrid
Résultat IMyCubeBlock

InventoryAdd() public static méthode

public static InventoryAdd ( IMyInventory inventory, VRage.MyFixedPoint amount, MyDefinitionId definitionId ) : bool
inventory IMyInventory
amount VRage.MyFixedPoint
definitionId MyDefinitionId
Résultat bool

InventoryDrop() public static méthode

public static InventoryDrop ( IMyEntity entity, VRage.MyFixedPoint amount, MyDefinitionId definitionId ) : void
entity IMyEntity
amount VRage.MyFixedPoint
definitionId MyDefinitionId
Résultat void

ProducedType() public static méthode

public static ProducedType ( MyDefinitionId definitionId ) : MyObjectBuilder_Base
definitionId MyDefinitionId
Résultat MyObjectBuilder_Base

RangeCheck() public static méthode

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
Résultat bool