C# 클래스 TEditXNA.Terraria.World

상속: GalaSoft.MvvmLight.ObservableObject
파일 보기 프로젝트 열기: TEdit/Terraria-Map-Editor 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
CaveBackX int[]
CompatibleVersion uint
Guid System.Guid
MaxMoons byte
Rand System.Random
SectionCount short
TileCount short
TileFrameImportant bool[]
Tiles ].Tile[
TreeBG int[]
TreeMntBG int[]
TreeX int[]
Version uint

공개 메소드들

메소드 설명
DeserializeTileData ( BinaryReader r, int &rle ) : Tile
FixChand ( int x, int y ) : void
FixNpcs ( ) : void
GetAnchor ( int x, int y ) : Vector2Int32
GetChestAtTile ( int x, int y ) : TEditXNA.Terraria.Chest
GetMannequin ( int x, int y ) : Vector2Int32
GetNpc ( int id ) : TEditXNA.Terraria.Objects.NpcName
GetRack ( int x, int y ) : Vector2Int32
GetSignAtTile ( int x, int y ) : TEditXNA.Terraria.Sign
GetTileEntityAtTile ( int x, int y ) : TileEntity
LoadChestData ( BinaryReader r ) : IEnumerable
LoadFooter ( BinaryReader r, World w ) : void
LoadHeaderFlags ( BinaryReader r, World w, int expectedPosition ) : void
LoadMobsData ( BinaryReader r, World w ) : void
LoadNPCsData ( BinaryReader r, World w ) : void
LoadPressurePlate ( BinaryReader r, World w ) : void
LoadSectionHeader ( BinaryReader r, bool &tileFrameImportant, int &sectionPointers, World w ) : bool
LoadSignData ( BinaryReader r ) : IEnumerable
LoadTileData ( BinaryReader r, int maxX, int maxY ) : ].Tile[
LoadTileEntities ( BinaryReader r, World w ) : void
LoadV2 ( BinaryReader b, string filename, World w ) : void
LoadWorld ( string filename ) : World
ReadBitArray ( BinaryReader reader ) : bool[]

Read an array of booleans from a bit-packed array.

ResetTime ( ) : void
Save ( World world, string filename, bool resetTime = false ) : void
SaveChests ( IList chests, BinaryWriter bw ) : int
SaveFooter ( World world, BinaryWriter bw ) : int
SaveHeaderFlags ( World world, BinaryWriter bw ) : int
SaveMobs ( IEnumerable mobs, BinaryWriter bw ) : int
SaveNPCs ( IEnumerable npcs, BinaryWriter bw ) : int
SavePressurePlate ( IList plates, BinaryWriter bw ) : int
SaveSectionHeader ( World world, BinaryWriter bw ) : int
SaveSigns ( IList signs, BinaryWriter bw ) : int
SaveTileEntities ( World w, BinaryWriter bw ) : int
SaveTiles ( Tile tiles, int maxX, int maxY, BinaryWriter bw ) : int
SerializeTileData ( Tile tile, int &dataIndex, int &headerIndex ) : byte[]

BitPack tile data and headers

UpdateSectionPointers ( int sectionPointers, BinaryWriter bw ) : int
ValSpecial ( int x, int y ) : void
ValidTileLocation ( Vector2Int32 v ) : bool
ValidTileLocation ( int x, int y ) : bool
Validate ( ) : void
World ( ) : System
World ( int height, int width, string title, int seed = -1 ) : System
WriteBitArray ( BinaryWriter writer, bool values ) : void

Write an array of booleans to a binary stream as a bit-packed array.

비공개 메소드들

메소드 설명
FixChand ( ) : void
FixSunflowers ( ) : void
GetNewNpc ( int id ) : TEditXNA.Terraria.Objects.NpcName
OnProgressChanged ( object sender, ProgressChangedEventArgs e ) : void
SaveV2 ( World world, BinaryWriter bw ) : void

메소드 상세

DeserializeTileData() 공개 정적인 메소드

public static DeserializeTileData ( BinaryReader r, int &rle ) : Tile
r System.IO.BinaryReader
rle int
리턴 Tile

FixChand() 공개 메소드

public FixChand ( int x, int y ) : void
x int
y int
리턴 void

FixNpcs() 공개 메소드

public FixNpcs ( ) : void
리턴 void

GetAnchor() 공개 메소드

public GetAnchor ( int x, int y ) : Vector2Int32
x int
y int
리턴 Vector2Int32

GetChestAtTile() 공개 메소드

public GetChestAtTile ( int x, int y ) : TEditXNA.Terraria.Chest
x int
y int
리턴 TEditXNA.Terraria.Chest

GetMannequin() 공개 메소드

public GetMannequin ( int x, int y ) : Vector2Int32
x int
y int
리턴 Vector2Int32

GetNpc() 공개 메소드

public GetNpc ( int id ) : TEditXNA.Terraria.Objects.NpcName
id int
리턴 TEditXNA.Terraria.Objects.NpcName

GetRack() 공개 메소드

public GetRack ( int x, int y ) : Vector2Int32
x int
y int
리턴 Vector2Int32

GetSignAtTile() 공개 메소드

public GetSignAtTile ( int x, int y ) : TEditXNA.Terraria.Sign
x int
y int
리턴 TEditXNA.Terraria.Sign

GetTileEntityAtTile() 공개 메소드

public GetTileEntityAtTile ( int x, int y ) : TileEntity
x int
y int
리턴 TileEntity

LoadChestData() 공개 정적인 메소드

public static LoadChestData ( BinaryReader r ) : IEnumerable
r System.IO.BinaryReader
리턴 IEnumerable

LoadFooter() 공개 정적인 메소드

public static LoadFooter ( BinaryReader r, World w ) : void
r System.IO.BinaryReader
w World
리턴 void

LoadHeaderFlags() 공개 정적인 메소드

public static LoadHeaderFlags ( BinaryReader r, World w, int expectedPosition ) : void
r System.IO.BinaryReader
w World
expectedPosition int
리턴 void

LoadMobsData() 공개 정적인 메소드

public static LoadMobsData ( BinaryReader r, World w ) : void
r System.IO.BinaryReader
w World
리턴 void

LoadNPCsData() 공개 정적인 메소드

public static LoadNPCsData ( BinaryReader r, World w ) : void
r System.IO.BinaryReader
w World
리턴 void

LoadPressurePlate() 공개 정적인 메소드

public static LoadPressurePlate ( BinaryReader r, World w ) : void
r System.IO.BinaryReader
w World
리턴 void

LoadSectionHeader() 공개 정적인 메소드

public static LoadSectionHeader ( BinaryReader r, bool &tileFrameImportant, int &sectionPointers, World w ) : bool
r System.IO.BinaryReader
tileFrameImportant bool
sectionPointers int
w World
리턴 bool

LoadSignData() 공개 정적인 메소드

public static LoadSignData ( BinaryReader r ) : IEnumerable
r System.IO.BinaryReader
리턴 IEnumerable

LoadTileData() 공개 정적인 메소드

public static LoadTileData ( BinaryReader r, int maxX, int maxY ) : ].Tile[
r System.IO.BinaryReader
maxX int
maxY int
리턴 ].Tile[

LoadTileEntities() 공개 정적인 메소드

public static LoadTileEntities ( BinaryReader r, World w ) : void
r System.IO.BinaryReader
w World
리턴 void

LoadV2() 공개 정적인 메소드

public static LoadV2 ( BinaryReader b, string filename, World w ) : void
b System.IO.BinaryReader
filename string
w World
리턴 void

LoadWorld() 공개 정적인 메소드

public static LoadWorld ( string filename ) : World
filename string
리턴 World

ReadBitArray() 공개 정적인 메소드

Read an array of booleans from a bit-packed array.
public static ReadBitArray ( BinaryReader reader ) : bool[]
reader System.IO.BinaryReader BinaryReader at start of bit array.
리턴 bool[]

ResetTime() 공개 메소드

public ResetTime ( ) : void
리턴 void

Save() 공개 정적인 메소드

public static Save ( World world, string filename, bool resetTime = false ) : void
world World
filename string
resetTime bool
리턴 void

SaveChests() 공개 정적인 메소드

public static SaveChests ( IList chests, BinaryWriter bw ) : int
chests IList
bw System.IO.BinaryWriter
리턴 int

SaveFooter() 공개 정적인 메소드

public static SaveFooter ( World world, BinaryWriter bw ) : int
world World
bw System.IO.BinaryWriter
리턴 int

SaveHeaderFlags() 공개 정적인 메소드

public static SaveHeaderFlags ( World world, BinaryWriter bw ) : int
world World
bw BinaryWriter
리턴 int

SaveMobs() 공개 정적인 메소드

public static SaveMobs ( IEnumerable mobs, BinaryWriter bw ) : int
mobs IEnumerable
bw BinaryWriter
리턴 int

SaveNPCs() 공개 정적인 메소드

public static SaveNPCs ( IEnumerable npcs, BinaryWriter bw ) : int
npcs IEnumerable
bw BinaryWriter
리턴 int

SavePressurePlate() 공개 정적인 메소드

public static SavePressurePlate ( IList plates, BinaryWriter bw ) : int
plates IList
bw BinaryWriter
리턴 int

SaveSectionHeader() 공개 정적인 메소드

public static SaveSectionHeader ( World world, BinaryWriter bw ) : int
world World
bw BinaryWriter
리턴 int

SaveSigns() 공개 정적인 메소드

public static SaveSigns ( IList signs, BinaryWriter bw ) : int
signs IList
bw BinaryWriter
리턴 int

SaveTileEntities() 공개 정적인 메소드

public static SaveTileEntities ( World w, BinaryWriter bw ) : int
w World
bw BinaryWriter
리턴 int

SaveTiles() 공개 정적인 메소드

public static SaveTiles ( Tile tiles, int maxX, int maxY, BinaryWriter bw ) : int
tiles Tile
maxX int
maxY int
bw BinaryWriter
리턴 int

SerializeTileData() 공개 정적인 메소드

BitPack tile data and headers
public static SerializeTileData ( Tile tile, int &dataIndex, int &headerIndex ) : byte[]
tile Tile
dataIndex int
headerIndex int
리턴 byte[]

UpdateSectionPointers() 공개 정적인 메소드

public static UpdateSectionPointers ( int sectionPointers, BinaryWriter bw ) : int
sectionPointers int
bw BinaryWriter
리턴 int

ValSpecial() 공개 메소드

public ValSpecial ( int x, int y ) : void
x int
y int
리턴 void

ValidTileLocation() 공개 메소드

public ValidTileLocation ( Vector2Int32 v ) : bool
v Vector2Int32
리턴 bool

ValidTileLocation() 공개 메소드

public ValidTileLocation ( int x, int y ) : bool
x int
y int
리턴 bool

Validate() 공개 메소드

public Validate ( ) : void
리턴 void

World() 공개 메소드

public World ( ) : System
리턴 System

World() 공개 메소드

public World ( int height, int width, string title, int seed = -1 ) : System
height int
width int
title string
seed int
리턴 System

WriteBitArray() 공개 정적인 메소드

Write an array of booleans to a binary stream as a bit-packed array.
public static WriteBitArray ( BinaryWriter writer, bool values ) : void
writer BinaryWriter BinaryWriter stream.
values bool Collection of booleans to write as a bit-packed array.
리턴 void

프로퍼티 상세

CaveBackX 공개적으로 프로퍼티

public int[] CaveBackX
리턴 int[]

CompatibleVersion 공개적으로 정적으로 프로퍼티

public static uint CompatibleVersion
리턴 uint

Guid 공개적으로 프로퍼티

public Guid,System Guid
리턴 System.Guid

MaxMoons 공개적으로 정적으로 프로퍼티

public static byte MaxMoons
리턴 byte

Rand 공개적으로 프로퍼티

public Random,System Rand
리턴 System.Random

SectionCount 공개적으로 정적으로 프로퍼티

public static short SectionCount
리턴 short

TileCount 공개적으로 정적으로 프로퍼티

public static short TileCount
리턴 short

TileFrameImportant 공개적으로 정적으로 프로퍼티

public static bool[] TileFrameImportant
리턴 bool[]

Tiles 공개적으로 프로퍼티

public Tile[,] Tiles
리턴 ].Tile[

TreeBG 공개적으로 프로퍼티

public int[] TreeBG
리턴 int[]

TreeMntBG 공개적으로 프로퍼티

public int[] TreeMntBG
리턴 int[]

TreeX 공개적으로 프로퍼티

public int[] TreeX
리턴 int[]

Version 공개적으로 프로퍼티

public uint Version
리턴 uint