C# 클래스 Terraria.GameContent.PortalHelper

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

공개 메소드들

메소드 설명
GetPortalColor ( int colorIndex ) : Color
GetPortalColor ( int player, int portal ) : Color
SupportedTilesAreFine ( Vector2 portalCenter, float portalAngle ) : bool
SyncPortalSections ( Vector2 portalPosition, int fluff ) : void
SyncPortalsOnPlayerJoin ( int plr, int fluff, List dontInclude, List &portals, List &portalCenters ) : void
TryGoingThroughPortals ( Entity ent ) : void
TryPlacingPortal ( Projectile theBolt, Vector2 velocity, Vector2 theCrashVelocity ) : int
UpdatePortalPoints ( ) : void

비공개 메소드들

메소드 설명
AddPortal ( Vector2 position, float angle, int form, int direction ) : int
BlockPortals ( Tile t ) : bool
FindCollision ( Vector2 startPosition, Vector2 stopPosition ) : Vector2
FindValidLine ( Point position, int xOffset, int yOffset, Point &bestPosition ) : bool
GetPortalEdges ( Vector2 position, float angle, Vector2 &start, Vector2 &end ) : void
GetPortalOutingPoint ( Vector2 objectSize, Vector2 portalPosition, float portalAngle, int &bonusX, int &bonusY ) : Vector2
IsValidLine ( Point position, int xOffset, int yOffset ) : bool
PortalHelper ( ) : Microsoft.Xna.Framework
RemoveIntersectingPortals ( Vector2 position, float angle ) : void
RemoveMyOldPortal ( int form ) : void
SupportedHalfbrick ( int x, int y ) : bool
SupportedNormal ( int x, int y ) : bool
SupportedSlope ( int x, int y, int slope ) : bool

메소드 상세

GetPortalColor() 공개 정적인 메소드

public static GetPortalColor ( int colorIndex ) : Color
colorIndex int
리턴 Color

GetPortalColor() 공개 정적인 메소드

public static GetPortalColor ( int player, int portal ) : Color
player int
portal int
리턴 Color

SupportedTilesAreFine() 공개 정적인 메소드

public static SupportedTilesAreFine ( Vector2 portalCenter, float portalAngle ) : bool
portalCenter Vector2
portalAngle float
리턴 bool

SyncPortalSections() 공개 정적인 메소드

public static SyncPortalSections ( Vector2 portalPosition, int fluff ) : void
portalPosition Vector2
fluff int
리턴 void

SyncPortalsOnPlayerJoin() 공개 정적인 메소드

public static SyncPortalsOnPlayerJoin ( int plr, int fluff, List dontInclude, List &portals, List &portalCenters ) : void
plr int
fluff int
dontInclude List
portals List
portalCenters List
리턴 void

TryGoingThroughPortals() 공개 정적인 메소드

public static TryGoingThroughPortals ( Entity ent ) : void
ent Entity
리턴 void

TryPlacingPortal() 공개 정적인 메소드

public static TryPlacingPortal ( Projectile theBolt, Vector2 velocity, Vector2 theCrashVelocity ) : int
theBolt Terraria.Projectile
velocity Vector2
theCrashVelocity Vector2
리턴 int

UpdatePortalPoints() 공개 정적인 메소드

public static UpdatePortalPoints ( ) : void
리턴 void