C# Class TEditXna.ViewModel.WorldViewModel

Show file Open project: TEdit/Terraria-Map-Editor Class Usage Examples

Public Properties

Property Type Description
CheckTiles bool[]

Public Methods

Method Description
CheckVersion ( bool auto = true ) : void
EditCopy ( ) : void
EditDelete ( ) : void
EditPaste ( ) : void
GetBackgroundColor ( int y ) : System.Color
LoadWorld ( string filename ) : void
MouseDownTile ( TEditXna.Editor.TileMouseState e ) : void
MouseMoveTile ( TEditXna.Editor.TileMouseState e ) : void
MouseUpTile ( TEditXna.Editor.TileMouseState e ) : void
PreviewChange ( ) : void
SetPixel ( int x, int y, PaintMode mode = null, bool erase = null ) : void
Update ( ) : void
UpdateRenderPixel ( Vector2Int32 p ) : void
UpdateRenderPixel ( int x, int y ) : void
UpdateRenderRegion ( Rectangle area ) : void

Protected Methods

Method Description
OnPreviewChanged ( object sender, EventArgs e ) : void
OnRequestScroll ( object sender, EventArgs e ) : void
OnRequestZoom ( object sender, EventArgs e ) : void

Private Methods

Method Description
ActivateBuffer ( ClipboardBuffer item ) : void
AddNpc ( int npcId ) : void
AnalyzeWorld ( ) : void
AnalyzeWorldSave ( ) : void
CanCopy ( ) : bool
CanPaste ( ) : bool
ExportSchematicFile ( ClipboardBuffer buffer ) : void
GetTallyCount ( ) : void
ImportSchematic ( bool isFalseColor ) : void
LaunchUrl ( string url ) : void
NewWorld ( ) : void
OnProgressChanged ( object sender, ProgressChangedEventArgs e ) : void
OpenWorld ( ) : void
RemoveNpc ( NPC npc ) : void
RenderEntireWorld ( ) : PixelMapManager
RunPlugin ( IPlugin plugin ) : void
SaveChest ( bool save ) : void
SaveMannequin ( bool save ) : void
SaveRack ( bool save ) : void
SaveSign ( bool save ) : void
SaveTileEntity ( bool save ) : void
SaveTimerTick ( object sender, ElapsedEventArgs e ) : void
SaveWorld ( ) : void
SaveWorldAs ( ) : void
SaveWorldFile ( ) : void
SaveWorldThreaded ( string filename ) : void
SetActiveTool ( ITool tool ) : void
SetPixelAutomatic ( Tile curTile, int tile = null, int wall = null, byte liquid = null, LiquidType liquidType = null, bool wire = null, short u = null, short v = null, bool wire2 = null, bool wire3 = null, bool wire4 = null, BrickStyle brickStyle = null, bool actuator = null, bool actuatorInActive = null, int tileColor = null, int wallColor = null ) : void
SetTile ( Tile curTile, bool erase ) : void
SetTrack ( int x, int y, Tile curTile, bool erase, bool hammer, bool check ) : void
SetWall ( Tile curTile, bool erase ) : void
TallyCountSave ( ) : void
UpdateMinimap ( object sender, EventArgs eventArgs ) : void
UpdateRenderWorld ( ) : void
UpdateTitle ( ) : void
ViewLog ( ) : void
WorldViewModel ( ) : System

Method Details

CheckVersion() public method

public CheckVersion ( bool auto = true ) : void
auto bool
return void

EditCopy() public method

public EditCopy ( ) : void
return void

EditDelete() public method

public EditDelete ( ) : void
return void

EditPaste() public method

public EditPaste ( ) : void
return void

GetBackgroundColor() public method

public GetBackgroundColor ( int y ) : System.Color
y int
return System.Color

LoadWorld() public method

public LoadWorld ( string filename ) : void
filename string
return void

MouseDownTile() public method

public MouseDownTile ( TEditXna.Editor.TileMouseState e ) : void
e TEditXna.Editor.TileMouseState
return void

MouseMoveTile() public method

public MouseMoveTile ( TEditXna.Editor.TileMouseState e ) : void
e TEditXna.Editor.TileMouseState
return void

MouseUpTile() public method

public MouseUpTile ( TEditXna.Editor.TileMouseState e ) : void
e TEditXna.Editor.TileMouseState
return void

OnPreviewChanged() protected method

protected OnPreviewChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

OnRequestScroll() protected method

protected OnRequestScroll ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

OnRequestZoom() protected method

protected OnRequestZoom ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

PreviewChange() public method

public PreviewChange ( ) : void
return void

SetPixel() public method

public SetPixel ( int x, int y, PaintMode mode = null, bool erase = null ) : void
x int
y int
mode PaintMode
erase bool
return void

Update() public method

public Update ( ) : void
return void

UpdateRenderPixel() public method

public UpdateRenderPixel ( Vector2Int32 p ) : void
p Vector2Int32
return void

UpdateRenderPixel() public method

public UpdateRenderPixel ( int x, int y ) : void
x int
y int
return void

UpdateRenderRegion() public method

public UpdateRenderRegion ( Rectangle area ) : void
area Rectangle
return void

Property Details

CheckTiles public property

public bool[] CheckTiles
return bool[]