C# 클래스 LOSManager, ES2015C

상속: MonoBehaviour
파일 보기 프로젝트 열기: jgirald/ES2015C 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Entities List
HeightBlockers HeightBlockerParameters
PreviewInEditor bool
Size SizeParameters
Terrain Terrain
Visual VisualParameters
visibleEntities List

공개 메소드들

메소드 설명
AddEntity ( LOSEntity, entity ) : void
GetFOWColor ( Rect rect ) : Color32
GetFOWColor ( Vector2 pos ) : Color32
GetQuantizedFOW ( Color32 px ) : Color32
GetRevealFromFOW ( Color32 px ) : LOSEntity.RevealStates
InitializeTexture ( ) : void
InvalidateTerrainHeightsCache ( ) : void
IsVisible ( Rect rect ) : LOSEntity.RevealStates
IsVisible ( Vector2 pos ) : LOSEntity.RevealStates
RemoveEntity ( LOSEntity, entity ) : void
Start ( ) : void
Update ( ) : void

비공개 메소드들

메소드 설명
AddAO ( Rect rect, float height ) : void
AddHeightBlocker ( Rect rect, float height ) : void
EaseToward ( byte from, byte to, int amount ) : byte
GenerateParameterHash ( ) : int
GetExtents ( Rect rect, int inflateRange, int &xMin, int &yMin, int &xMax, int &yMax ) : void
GetExtents ( Vector2 pos, int inflateRange, int &xMin, int &yMin, int &xMax, int &yMax ) : void
RevealLOS ( LOSEntity, sight, float los, float fow, float grayscale ) : void
RevealLOS ( Rect rect, float range, float height, float los, float fow, float grayscale ) : void
SizeFromParams ( int desired, float terrainSize, float scale ) : int

메소드 상세

AddEntity() 공개 정적인 메소드

public static AddEntity ( LOSEntity, entity ) : void
entity LOSEntity,
리턴 void

GetFOWColor() 공개 메소드

public GetFOWColor ( Rect rect ) : Color32
rect Rect
리턴 UnityEngine.Color32

GetFOWColor() 공개 메소드

public GetFOWColor ( Vector2 pos ) : Color32
pos Vector2
리턴 UnityEngine.Color32

GetQuantizedFOW() 공개 메소드

public GetQuantizedFOW ( Color32 px ) : Color32
px UnityEngine.Color32
리턴 UnityEngine.Color32

GetRevealFromFOW() 공개 메소드

public GetRevealFromFOW ( Color32 px ) : LOSEntity.RevealStates
px UnityEngine.Color32
리턴 LOSEntity.RevealStates

InitializeTexture() 공개 메소드

public InitializeTexture ( ) : void
리턴 void

InvalidateTerrainHeightsCache() 공개 메소드

public InvalidateTerrainHeightsCache ( ) : void
리턴 void

IsVisible() 공개 메소드

public IsVisible ( Rect rect ) : LOSEntity.RevealStates
rect Rect
리턴 LOSEntity.RevealStates

IsVisible() 공개 메소드

public IsVisible ( Vector2 pos ) : LOSEntity.RevealStates
pos Vector2
리턴 LOSEntity.RevealStates

RemoveEntity() 공개 정적인 메소드

public static RemoveEntity ( LOSEntity, entity ) : void
entity LOSEntity,
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

Update() 공개 메소드

public Update ( ) : void
리턴 void

프로퍼티 상세

Entities 공개적으로 프로퍼티

public List Entities
리턴 List

HeightBlockers 공개적으로 프로퍼티

public HeightBlockerParameters HeightBlockers
리턴 HeightBlockerParameters

PreviewInEditor 공개적으로 프로퍼티

public bool PreviewInEditor
리턴 bool

Size 공개적으로 프로퍼티

public SizeParameters Size
리턴 SizeParameters

Terrain 공개적으로 프로퍼티

public Terrain Terrain
리턴 Terrain

Visual 공개적으로 프로퍼티

public VisualParameters Visual
리턴 VisualParameters

visibleEntities 공개적으로 프로퍼티

public List visibleEntities
리턴 List