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

Mostra file Open project: CoderCow/AdvancedCircuits-Plugin Class Usage Examples

Public Methods

Method 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 method

public static BoolToSignal ( bool signal ) : SignalType
signal bool
return SignalType

DirectionFromTileLocations() public static method

public static DirectionFromTileLocations ( System.Drawing.Point startTile, System.Drawing.Point endTile ) : Direction
startTile System.Drawing.Point
endTile System.Drawing.Point
return Direction

EnumerateComponentPortLocations() public static method

public static EnumerateComponentPortLocations ( Terraria.Plugins.Common.ObjectMeasureData measureData ) : IEnumerable
measureData Terraria.Plugins.Common.ObjectMeasureData
return IEnumerable

EnumerateComponentPortLocations() public static method

public static EnumerateComponentPortLocations ( System.Drawing.Point componentOriginLocation, System.Drawing.Point componentSize ) : IEnumerable
componentOriginLocation System.Drawing.Point
componentSize System.Drawing.Point
return IEnumerable

EnumerateWireColors() public static method

public static EnumerateWireColors ( ) : IEnumerable
return IEnumerable

GetComponentName() public static method

public static GetComponentName ( BlockType blockType ) : string
blockType BlockType
return string

GetPortAdjacentComponentTileLocation() public static method

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

InvertDirection() public static method

public static InvertDirection ( Direction direction ) : Direction
direction Direction
return Direction

IsComponentWiredByPort() public static method

public static IsComponentWiredByPort ( Terraria.Plugins.Common.ObjectMeasureData measureData ) : bool
measureData Terraria.Plugins.Common.ObjectMeasureData
return bool

IsComponentWiredByPort() public static method

public static IsComponentWiredByPort ( System.Drawing.Point componentOriginLocation, System.Drawing.Point componentSize ) : bool
componentOriginLocation System.Drawing.Point
componentSize System.Drawing.Point
return bool

IsCustomActivatableBlock() public static method

public static IsCustomActivatableBlock ( BlockType blockType ) : bool
blockType BlockType
return bool

IsLogicalGate() public static method

public static IsLogicalGate ( BlockType blockType ) : bool
blockType BlockType
return bool

IsOriginSenderComponent() public static method

public static IsOriginSenderComponent ( BlockType blockType ) : bool
blockType BlockType
return bool

IsPaintSupportingComponent() public static method

public static IsPaintSupportingComponent ( BlockType blockType ) : bool
blockType BlockType
return bool

IsPortDefiningComponentBlock() public static method

public static IsPortDefiningComponentBlock ( BlockType blockType ) : bool
blockType BlockType
return bool

MeasureTimerFrameTime() public static method

public static MeasureTimerFrameTime ( System.Drawing.Point timerLocation ) : int
timerLocation System.Drawing.Point
return int

SignalToBool() public static method

public static SignalToBool ( SignalType signal ) : bool?
signal SignalType
return bool?

SwapperPaintToCount() public static method

public static SwapperPaintToCount ( PaintColor componentPaint ) : int
componentPaint PaintColor
return int