C# Class MapEditor, SRPGCK

Inheritance: EditorWindow
Exibir arquivo Open project: JoeOsborn/SRPGCK Class Usage Examples

Public Properties

Property Type Description
cornerInsets float[]
draggingInMap bool
editMode EditMode,
editModeChanged bool
editZ int
lastPos Vector3
lastSideLength float
lastSize Vector2
makeInvisibleTiles bool
showDimensions bool
sideInsets float[]
specPlaceholderTexture UnityEngine.Texture2D
specScrollPos Vector2
specSelectedSpec int

Public Methods

Method Description
AddOrStampIsoTileAt ( int idx ) : void
AdjustIsoHeightAt ( int idx, Neighbors, collidedFace, Vector3 wpos, int dh ) : void
BaseStampOffsetsAt ( int idx ) : void
DrawWireBounds ( Vector3 center, Vector3 size, Color lineColor ) : void
DrawWireBounds ( Vector3 center, Vector3 size, Color lineColor, Neighbors, sides ) : void
GUIUpdateTexture ( Texture2D tex, int idx, int>.Dictionary names ) : void
OnInspectorGUI ( ) : void
OnSceneGUI ( ) : void
RegisterUndo ( string label ) : void
RemoveIsoTileAt ( int idx ) : void
RemoveOffsetsAt ( int idx ) : void
SetTileSpecAt ( int idx, Neighbors, collidedFace ) : void
SetupAddRemoveTileBounds ( TileBounds, b, int idx ) : void
SetupPaintTileBounds ( TileBounds, b, int idx ) : void
StampOffsetsAt ( int idx ) : void

Private Methods

Method Description
CollidedFaceAt ( Vector3 cp, TileBounds, b ) : Neighbors,
Roughly ( float a, float b ) : bool
modf ( float f ) : float

Method Details

AddOrStampIsoTileAt() public method

public AddOrStampIsoTileAt ( int idx ) : void
idx int
return void

AdjustIsoHeightAt() public method

public AdjustIsoHeightAt ( int idx, Neighbors, collidedFace, Vector3 wpos, int dh ) : void
idx int
collidedFace Neighbors,
wpos Vector3
dh int
return void

BaseStampOffsetsAt() public method

public BaseStampOffsetsAt ( int idx ) : void
idx int
return void

DrawWireBounds() public static method

public static DrawWireBounds ( Vector3 center, Vector3 size, Color lineColor ) : void
center Vector3
size Vector3
lineColor Color
return void

DrawWireBounds() public static method

public static DrawWireBounds ( Vector3 center, Vector3 size, Color lineColor, Neighbors, sides ) : void
center Vector3
size Vector3
lineColor Color
sides Neighbors,
return void

GUIUpdateTexture() public method

public GUIUpdateTexture ( Texture2D tex, int idx, int>.Dictionary names ) : void
tex UnityEngine.Texture2D
idx int
names int>.Dictionary
return void

OnInspectorGUI() public method

public OnInspectorGUI ( ) : void
return void

OnSceneGUI() public method

public OnSceneGUI ( ) : void
return void

RegisterUndo() public method

public RegisterUndo ( string label ) : void
label string
return void

RemoveIsoTileAt() public method

public RemoveIsoTileAt ( int idx ) : void
idx int
return void

RemoveOffsetsAt() public method

public RemoveOffsetsAt ( int idx ) : void
idx int
return void

SetTileSpecAt() public method

public SetTileSpecAt ( int idx, Neighbors, collidedFace ) : void
idx int
collidedFace Neighbors,
return void

SetupAddRemoveTileBounds() public method

public SetupAddRemoveTileBounds ( TileBounds, b, int idx ) : void
b TileBounds,
idx int
return void

SetupPaintTileBounds() public method

public SetupPaintTileBounds ( TileBounds, b, int idx ) : void
b TileBounds,
idx int
return void

StampOffsetsAt() public method

public StampOffsetsAt ( int idx ) : void
idx int
return void

Property Details

cornerInsets public_oe property

public float[] cornerInsets
return float[]

draggingInMap public_oe property

public bool draggingInMap
return bool

editMode public_oe property

public EditMode, editMode
return EditMode,

editModeChanged public_oe property

public bool editModeChanged
return bool

editZ public_oe property

public int editZ
return int

lastPos public_oe property

public Vector3 lastPos
return Vector3

lastSideLength public_oe property

public float lastSideLength
return float

lastSize public_oe property

public Vector2 lastSize
return Vector2

makeInvisibleTiles public_oe property

public bool makeInvisibleTiles
return bool

showDimensions public_oe property

public bool showDimensions
return bool

sideInsets public_oe property

public float[] sideInsets
return float[]

specPlaceholderTexture public_oe property

public Texture2D,UnityEngine specPlaceholderTexture
return UnityEngine.Texture2D

specScrollPos public_oe property

public Vector2 specScrollPos
return Vector2

specSelectedSpec public_oe property

public int specSelectedSpec
return int