C# Class Terraria.Plugins.CoderCow.AdvancedCircuits.AdvancedCircuits

Afficher le fichier Open project: CoderCow/AdvancedCircuits-Plugin Class Usage Examples

Méthodes publiques

Méthode Description
BoolToSignal ( bool signal ) : SignalType
DirectionFromTileLocations ( System.Drawing.Point startTile, System.Drawing.Point endTile ) : Direction
EnumerateComponentPortLocations ( Terraria.Plugins.Common.ObjectMeasureData measureData ) : IEnumerable
EnumerateComponentPortLocations ( System.Drawing.Point componentOriginLocation, System.Drawing.Point componentSize ) : IEnumerable
EnumerateWireColors ( ) : IEnumerable
GetComponentName ( BlockType blockType ) : string
GetPortAdjacentComponentTileLocation ( Terraria.Plugins.Common.ObjectMeasureData measureData, System.Drawing.Point portLocation ) : System.Drawing.Point
InvertDirection ( Direction direction ) : Direction
IsComponentWiredByPort ( Terraria.Plugins.Common.ObjectMeasureData measureData ) : bool
IsComponentWiredByPort ( System.Drawing.Point componentOriginLocation, System.Drawing.Point componentSize ) : bool
IsCustomActivatableBlock ( BlockType blockType ) : bool
IsLogicalGate ( BlockType blockType ) : bool
IsOriginSenderComponent ( BlockType blockType ) : bool
IsPaintSupportingComponent ( BlockType blockType ) : bool
IsPortDefiningComponentBlock ( BlockType blockType ) : bool
MeasureTimerFrameTime ( System.Drawing.Point timerLocation ) : int
SignalToBool ( SignalType signal ) : bool?
SwapperPaintToCount ( PaintColor componentPaint ) : int

Method Details

BoolToSignal() public static méthode

public static BoolToSignal ( bool signal ) : SignalType
signal bool
Résultat SignalType

DirectionFromTileLocations() public static méthode

public static DirectionFromTileLocations ( System.Drawing.Point startTile, System.Drawing.Point endTile ) : Direction
startTile System.Drawing.Point
endTile System.Drawing.Point
Résultat Direction

EnumerateComponentPortLocations() public static méthode

public static EnumerateComponentPortLocations ( Terraria.Plugins.Common.ObjectMeasureData measureData ) : IEnumerable
measureData Terraria.Plugins.Common.ObjectMeasureData
Résultat IEnumerable

EnumerateComponentPortLocations() public static méthode

public static EnumerateComponentPortLocations ( System.Drawing.Point componentOriginLocation, System.Drawing.Point componentSize ) : IEnumerable
componentOriginLocation System.Drawing.Point
componentSize System.Drawing.Point
Résultat IEnumerable

EnumerateWireColors() public static méthode

public static EnumerateWireColors ( ) : IEnumerable
Résultat IEnumerable

GetComponentName() public static méthode

public static GetComponentName ( BlockType blockType ) : string
blockType BlockType
Résultat string

GetPortAdjacentComponentTileLocation() public static méthode

public static GetPortAdjacentComponentTileLocation ( Terraria.Plugins.Common.ObjectMeasureData measureData, System.Drawing.Point portLocation ) : System.Drawing.Point
measureData Terraria.Plugins.Common.ObjectMeasureData
portLocation System.Drawing.Point
Résultat System.Drawing.Point

InvertDirection() public static méthode

public static InvertDirection ( Direction direction ) : Direction
direction Direction
Résultat Direction

IsComponentWiredByPort() public static méthode

public static IsComponentWiredByPort ( Terraria.Plugins.Common.ObjectMeasureData measureData ) : bool
measureData Terraria.Plugins.Common.ObjectMeasureData
Résultat bool

IsComponentWiredByPort() public static méthode

public static IsComponentWiredByPort ( System.Drawing.Point componentOriginLocation, System.Drawing.Point componentSize ) : bool
componentOriginLocation System.Drawing.Point
componentSize System.Drawing.Point
Résultat bool

IsCustomActivatableBlock() public static méthode

public static IsCustomActivatableBlock ( BlockType blockType ) : bool
blockType BlockType
Résultat bool

IsLogicalGate() public static méthode

public static IsLogicalGate ( BlockType blockType ) : bool
blockType BlockType
Résultat bool

IsOriginSenderComponent() public static méthode

public static IsOriginSenderComponent ( BlockType blockType ) : bool
blockType BlockType
Résultat bool

IsPaintSupportingComponent() public static méthode

public static IsPaintSupportingComponent ( BlockType blockType ) : bool
blockType BlockType
Résultat bool

IsPortDefiningComponentBlock() public static méthode

public static IsPortDefiningComponentBlock ( BlockType blockType ) : bool
blockType BlockType
Résultat bool

MeasureTimerFrameTime() public static méthode

public static MeasureTimerFrameTime ( System.Drawing.Point timerLocation ) : int
timerLocation System.Drawing.Point
Résultat int

SignalToBool() public static méthode

public static SignalToBool ( SignalType signal ) : bool?
signal SignalType
Résultat bool?

SwapperPaintToCount() public static méthode

public static SwapperPaintToCount ( PaintColor componentPaint ) : int
componentPaint PaintColor
Résultat int