C# 클래스 fCraft.WorldManager

Manages the world list. Handles loading/unloading, renaming, map changes, and more.
파일 보기 프로젝트 열기: GlennMR/800craft 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CheckMapFile void
FindMapFile string
FindWorldExact World
FindWorldOrPrintMatches World
LoadWorldList bool
LoadWorldListEntry void
RaiseMainWorldChangedEvent void
RaiseMainWorldChangingEvent bool
RaiseWorldCreatedEvent void
RaiseWorldCreatingEvent bool
ReplaceWorld void

공개 메소드들

메소드 설명
AddWorld ( [ player, [ name, [ map, bool neverUnload ) : World
CountLoadedWorlds ( ) : int
CountLoadedWorlds ( [ observer ) : int
FindWorlds ( [ player, [ name ) : fCraft.World[]

Finds all worlds that match the given name. Autocompletes. Raises SearchingForWorld event. Target worlds are not guaranteed to have a loaded map.

FindWorldsNoEvent ( [ name ) : fCraft.World[]

Finds all worlds that match the given world name. Autocompletes. Does not raise SearchingForWorld event. Target worlds are not guaranteed to have a loaded map.

ListLoadedWorlds ( ) : IEnumerable
ListLoadedWorlds ( [ observer ) : IEnumerable
RemoveWorld ( [ worldToDelete ) : void
RenameWorld ( [ world, [ newName, bool moveMapFile, bool overwrite ) : void

Changes the name of the given world.

SaveWorldList ( ) : void

Saves the current world list to worlds.xml. Thread-safe.

UpdateWorldList ( ) : void

비공개 메소드들

메소드 설명
CheckMapFile ( [ world ) : void
FindMapFile ( [ player, [ fileName ) : string
FindWorldExact ( [ name ) : World
FindWorldOrPrintMatches ( [ player, [ worldName ) : World
LoadWorldList ( ) : bool
LoadWorldListEntry ( [ el ) : void
RaiseMainWorldChangedEvent ( [ oldWorld, [ newWorld ) : void
RaiseMainWorldChangingEvent ( World oldWorld, [ newWorld ) : bool
RaiseWorldCreatedEvent ( [ player, [ world ) : void
RaiseWorldCreatingEvent ( [ player, [ worldName, [ map ) : bool
ReplaceWorld ( [ oldWorld, [ newWorld ) : void

메소드 상세

AddWorld() 공개 정적인 메소드

public static AddWorld ( [ player, [ name, [ map, bool neverUnload ) : World
player [
name [
map [
neverUnload bool
리턴 World

CountLoadedWorlds() 공개 정적인 메소드

public static CountLoadedWorlds ( ) : int
리턴 int

CountLoadedWorlds() 공개 정적인 메소드

public static CountLoadedWorlds ( [ observer ) : int
observer [
리턴 int

FindWorlds() 공개 정적인 메소드

Finds all worlds that match the given name. Autocompletes. Raises SearchingForWorld event. Target worlds are not guaranteed to have a loaded map.
public static FindWorlds ( [ player, [ name ) : fCraft.World[]
player [ Player who is calling the query. May be null.
name [ Full or partial world name.
리턴 fCraft.World[]

FindWorldsNoEvent() 공개 정적인 메소드

Finds all worlds that match the given world name. Autocompletes. Does not raise SearchingForWorld event. Target worlds are not guaranteed to have a loaded map.
public static FindWorldsNoEvent ( [ name ) : fCraft.World[]
name [
리턴 fCraft.World[]

ListLoadedWorlds() 공개 정적인 메소드

public static ListLoadedWorlds ( ) : IEnumerable
리턴 IEnumerable

ListLoadedWorlds() 공개 정적인 메소드

public static ListLoadedWorlds ( [ observer ) : IEnumerable
observer [
리턴 IEnumerable

RemoveWorld() 공개 정적인 메소드

public static RemoveWorld ( [ worldToDelete ) : void
worldToDelete [
리턴 void

RenameWorld() 공개 정적인 메소드

Changes the name of the given world.
public static RenameWorld ( [ world, [ newName, bool moveMapFile, bool overwrite ) : void
world [
newName [
moveMapFile bool
overwrite bool
리턴 void

SaveWorldList() 공개 정적인 메소드

Saves the current world list to worlds.xml. Thread-safe.
public static SaveWorldList ( ) : void
리턴 void

UpdateWorldList() 공개 정적인 메소드

public static UpdateWorldList ( ) : void
리턴 void