C# Класс FSO.LotView.World

Represents world (I.E lots in the game.)
Наследование: FSO.Common.Rendering.Framework._3DScene
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DirectX bool
ScrollBounds int
State WorldState

Защищенные свойства (Protected)

Свойство Тип Описание
HasInit bool
HasInitBlueprint bool
HasInitGPU bool

Открытые методы

Метод Описание
Draw ( GraphicsDevice device ) : void

We will just take over the whole rendering of this scene :)

GetObjectIDAtScreenPos ( int x, int y, GraphicsDevice gd ) : short

Gets the ID of the object at a given position.

GetObjectThumb ( ObjectComponent objects, Vector3 positions, GraphicsDevice gd ) : Texture2D

Gets an object group's thumbnail provided an array of objects.

GetScrollBasis ( ) : Vector2[]
InitBlueprint ( Blueprint blueprint ) : void
Initialize ( _3DLayer layer ) : void

Setup anything that needs a GraphicsDevice

InvalidateFloor ( ) : void
InvalidateRotation ( ) : void
InvalidateScroll ( ) : void
InvalidateZoom ( ) : void
PreDraw ( GraphicsDevice device ) : void

Pre-Draw

Scroll ( Vector2 dir ) : void
TestScroll ( UpdateState state ) : bool
Update ( UpdateState state ) : void
World ( GraphicsDevice Device ) : System

Creates a new World instance.

Приватные методы

Метод Описание
InternalDraw ( GraphicsDevice device ) : void

Описание методов

Draw() публичный метод

We will just take over the whole rendering of this scene :)
public Draw ( GraphicsDevice device ) : void
device GraphicsDevice
Результат void

GetObjectIDAtScreenPos() публичный метод

Gets the ID of the object at a given position.
public GetObjectIDAtScreenPos ( int x, int y, GraphicsDevice gd ) : short
x int X position of object.
y int Y position of object.
gd GraphicsDevice GraphicsDevice instance.
Результат short

GetObjectThumb() публичный метод

Gets an object group's thumbnail provided an array of objects.
public GetObjectThumb ( ObjectComponent objects, Vector3 positions, GraphicsDevice gd ) : Texture2D
objects ObjectComponent The object components to draw.
positions Vector3
gd GraphicsDevice GraphicsDevice instance.
Результат Texture2D

GetScrollBasis() публичный метод

public GetScrollBasis ( ) : Vector2[]
Результат Vector2[]

InitBlueprint() публичный метод

public InitBlueprint ( Blueprint blueprint ) : void
blueprint Blueprint
Результат void

Initialize() публичный метод

Setup anything that needs a GraphicsDevice
public Initialize ( _3DLayer layer ) : void
layer _3DLayer
Результат void

InvalidateFloor() публичный метод

public InvalidateFloor ( ) : void
Результат void

InvalidateRotation() публичный метод

public InvalidateRotation ( ) : void
Результат void

InvalidateScroll() публичный метод

public InvalidateScroll ( ) : void
Результат void

InvalidateZoom() публичный метод

public InvalidateZoom ( ) : void
Результат void

PreDraw() публичный метод

Pre-Draw
public PreDraw ( GraphicsDevice device ) : void
device GraphicsDevice
Результат void

Scroll() публичный метод

public Scroll ( Vector2 dir ) : void
dir Vector2
Результат void

TestScroll() публичный метод

public TestScroll ( UpdateState state ) : bool
state UpdateState
Результат bool

Update() публичный метод

public Update ( UpdateState state ) : void
state UpdateState
Результат void

World() публичный метод

Creates a new World instance.
public World ( GraphicsDevice Device ) : System
Device GraphicsDevice A GraphicsDevice instance.
Результат System

Описание свойств

DirectX публичное статическое свойство

public static bool DirectX
Результат bool

HasInit защищенное свойство

protected bool HasInit
Результат bool

HasInitBlueprint защищенное свойство

protected bool HasInitBlueprint
Результат bool

HasInitGPU защищенное свойство

protected bool HasInitGPU
Результат bool

ScrollBounds публичное свойство

public int ScrollBounds
Результат int

State публичное свойство

public WorldState State
Результат WorldState