C# 클래스 Axiom.Components.Paging.PageWorld

파일 보기 프로젝트 열기: WolfgangSt/axiom 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
CHUNK_ID uint
CHUNK_VERSION ushort

보호된 프로퍼티들

프로퍼티 타입 설명
mManger PageManager
mName string
mPageProvider PageProvider
mSectionNameGenerator NameGenerator
mSections PagedWorldSection>.Dictionary

공개 메소드들

메소드 설명
DestroySection ( PagedWorldSection section ) : void

DestroySection ( string name ) : void

Destroy a section of world.

FrameEnd ( float timeElapsed ) : void

Called when the frame ends

FrameStart ( float timeSinceLastFrame ) : void

Called when the frame starts

GetSection ( string name ) : PagedWorldSection

Retrieve a section of the world.

Load ( StreamSerializer stream ) : bool

Load world data from a serialiser (returns true if successful)

Load ( Stream stream ) : void

Load world data from a stream

Load ( string fileName ) : void

Load world data from a file

LoadProcedualPage ( Page page, PagedWorldSection section ) : bool

Give a world the opportunity to load page content procedurally.

NotifyCamera ( Camera cam ) : void

Notify a world of the current camera

PageWorld ( string name, PageManager manager ) : System

Default Constructor.

PrepareProcedualPage ( Page page, PagedWorldSection section ) : bool

Give a world the opportunity to prepare page content procedurally.

ReadPageStream ( PageID pageId, PagedWorldSection section ) : StreamSerializer

Get a serialiser set up to read Page data for the given PageID.

Save ( Stream stream ) : void

Save world data to a stream

Save ( StreamSerializer stream ) : void

Save world data to a serialiser

Save ( string fileName ) : void

Save world data to a file

ToString ( ) : string

UnPrepareProcedualPage ( Page page, PagedWorldSection section ) : bool

UnloadProcedualPage ( Page page, PagedWorldSection section ) : bool

Give a world the opportunity to unload page content procedurally.

WritePageStream ( PageID pageId, PagedWorldSection section ) : StreamSerializer

Get a serialiser set up to write Page data for the given PageID.

비공개 메소드들

메소드 설명
CreateSection ( Axiom.Components.Paging.PageStrategy strategy, SceneManager sceneMgr ) : PagedWorldSection

Create a new section of the world.

CreateSection ( Axiom.Components.Paging.PageStrategy strategy, SceneManager sceneMgr, string sectionName ) : PagedWorldSection

Create a new section of the world.

CreateSection ( string strategyName, SceneManager sceneMgr ) : PagedWorldSection

Create a new section of the world.

CreateSection ( string strategyName, SceneManager sceneMgr, string sectionName ) : PagedWorldSection

Create a new section of the world.

메소드 상세

DestroySection() 공개 메소드

public DestroySection ( PagedWorldSection section ) : void
section PagedWorldSection
리턴 void

DestroySection() 공개 메소드

Destroy a section of world.
public DestroySection ( string name ) : void
name string
리턴 void

FrameEnd() 공개 메소드

Called when the frame ends
public FrameEnd ( float timeElapsed ) : void
timeElapsed float
리턴 void

FrameStart() 공개 메소드

Called when the frame starts
public FrameStart ( float timeSinceLastFrame ) : void
timeSinceLastFrame float
리턴 void

GetSection() 공개 메소드

Retrieve a section of the world.
public GetSection ( string name ) : PagedWorldSection
name string
리턴 PagedWorldSection

Load() 공개 메소드

Load world data from a serialiser (returns true if successful)
public Load ( StreamSerializer stream ) : bool
stream Axiom.Serialization.StreamSerializer
리턴 bool

Load() 공개 메소드

Load world data from a stream
public Load ( Stream stream ) : void
stream Stream
리턴 void

Load() 공개 메소드

Load world data from a file
public Load ( string fileName ) : void
fileName string
리턴 void

LoadProcedualPage() 공개 메소드

Give a world the opportunity to load page content procedurally.
public LoadProcedualPage ( Page page, PagedWorldSection section ) : bool
page Page
section PagedWorldSection
리턴 bool

NotifyCamera() 공개 메소드

Notify a world of the current camera
public NotifyCamera ( Camera cam ) : void
cam Axiom.Core.Camera
리턴 void

PageWorld() 공개 메소드

Default Constructor.
public PageWorld ( string name, PageManager manager ) : System
name string
manager PageManager
리턴 System

PrepareProcedualPage() 공개 메소드

Give a world the opportunity to prepare page content procedurally.
public PrepareProcedualPage ( Page page, PagedWorldSection section ) : bool
page Page
section PagedWorldSection
리턴 bool

ReadPageStream() 공개 메소드

Get a serialiser set up to read Page data for the given PageID.
public ReadPageStream ( PageID pageId, PagedWorldSection section ) : StreamSerializer
pageId PageID
section PagedWorldSection
리턴 Axiom.Serialization.StreamSerializer

Save() 공개 메소드

Save world data to a stream
public Save ( Stream stream ) : void
stream Stream
리턴 void

Save() 공개 메소드

Save world data to a serialiser
public Save ( StreamSerializer stream ) : void
stream Axiom.Serialization.StreamSerializer
리턴 void

Save() 공개 메소드

Save world data to a file
public Save ( string fileName ) : void
fileName string
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

UnPrepareProcedualPage() 공개 메소드

public UnPrepareProcedualPage ( Page page, PagedWorldSection section ) : bool
page Page
section PagedWorldSection
리턴 bool

UnloadProcedualPage() 공개 메소드

Give a world the opportunity to unload page content procedurally.
public UnloadProcedualPage ( Page page, PagedWorldSection section ) : bool
page Page
section PagedWorldSection
리턴 bool

WritePageStream() 공개 메소드

Get a serialiser set up to write Page data for the given PageID.
public WritePageStream ( PageID pageId, PagedWorldSection section ) : StreamSerializer
pageId PageID
section PagedWorldSection
리턴 Axiom.Serialization.StreamSerializer

프로퍼티 상세

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

public static uint CHUNK_ID
리턴 uint

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

public static ushort CHUNK_VERSION
리턴 ushort

mManger 보호되어 있는 프로퍼티

protected PageManager,Axiom.Components.Paging mManger
리턴 PageManager

mName 보호되어 있는 프로퍼티

protected string mName
리턴 string

mPageProvider 보호되어 있는 프로퍼티

protected PageProvider,Axiom.Components.Paging mPageProvider
리턴 PageProvider

mSectionNameGenerator 보호되어 있는 프로퍼티

protected NameGenerator mSectionNameGenerator
리턴 NameGenerator

mSections 보호되어 있는 프로퍼티

protected Dictionary mSections
리턴 PagedWorldSection>.Dictionary