C# Класс FSO.Client.Rendering.City.Terrain

Наследование: FSO.Common.Rendering.Framework._3DAbstract
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
Atlas Microsoft.Xna.Framework.Graphics.Texture2D
MASK_COLORS uint[]
RegenData bool
Shader2D Microsoft.Xna.Framework.Graphics.Effect
ShadowRes int
ShadowsEnabled bool
m_GraphicsDevice GraphicsDevice
m_Roads Microsoft.Xna.Framework.Graphics.Texture2D[]
m_ZoomProgress float
m_Zoomed bool

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

Метод Описание
Add ( _3DComponent item ) : void
ClearOldData ( ) : void
CreateRoadAtlas ( Microsoft.Xna.Framework.Graphics.Texture2D input, SpriteBatch spriteBatch ) : Microsoft.Xna.Framework.Graphics.Texture2D
CreateTextureAtlas ( SpriteBatch spriteBatch ) : void

Creates a texture atlas with which to texture the terrain.

CreateTransparencyAtlas ( SpriteBatch spriteBatch ) : void

Creates a transparency atlas with which to texture the terrain.

DeviceReset ( GraphicsDevice Device ) : void
Draw ( GraphicsDevice gfx ) : void
Draw2DPoly ( ) : void
DrawTooltip ( SpriteBatch batch, string tooltip, Vector2 position, float opacity ) : void

Draws a tooltip at the specified coordinates.

GenerateAssets ( ) : void
GenerateCityMesh ( GraphicsDevice GfxDevice ) : void
GetElements ( ) : List<_3DComponent>
Initialize ( String CityName, CityDataRetriever cityData ) : void
LoadContent ( GraphicsDevice GfxDevice ) : void
SetTimeOfDay ( double time ) : void
Terrain ( GraphicsDevice Device ) : System
UIMouseEvent ( String type ) : void
UnloadEverything ( ) : void
Update ( UpdateState state ) : void
populateCityLookup ( LotTileEntry TileData ) : void
transformSpr ( float iScale, Vector3 pos ) : Vector2

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

Метод Описание
BuyPropertyAlert_OnButtonClick ( UIElement Button ) : void

Player selected "yes" to buy a new lot.

CalculateR ( Vector2 m ) : Vector2
Controller_OnLotCost ( LotTileEntry Entry ) : void
Controller_OnLotPurchaseFailed ( Network e ) : void
Controller_OnLotPurchaseSuccessful ( int Money ) : void
Controller_OnLotUnbuildable ( ) : void
ConvertToBinaryArray ( Color ColorArray ) : byte[]
DrawDepth ( Effect VertexShader, Effect PixelShader ) : Microsoft.Xna.Framework.Graphics.Texture2D
DrawHouses ( float HB ) : void
DrawLine ( Microsoft.Xna.Framework.Graphics.Texture2D Fill, Vector2 Start, Vector2 End, SpriteBatch spriteBatch, int lineWidth, float opacity ) : void
DrawSpotlights ( float HB ) : void
DrawSprites ( float HB, float VB ) : void
DrawTileBorders ( float iScale, SpriteBatch spriteBatch ) : void
FixedTimeUpdate ( ) : void
GetBlend ( Color TerrainTypeData, int i, int j ) : Blend
GetHoverSquare ( ) : int[]
IsInsidePoly ( double Poly, double Pos ) : bool
LoadTex ( Stream stream ) : Microsoft.Xna.Framework.Graphics.Texture2D
LoadTex ( string Path ) : Microsoft.Xna.Framework.Graphics.Texture2D
PathTile ( int x, int y, float iScale, float opacity ) : void
ToBinaryString ( int Array ) : string
ZeroPad ( string Str, int NumZeroes ) : string
drawBorderSide ( Vector2 xy, Vector2 xy2, Vector2 xy3, Vector2 xy4, SpriteBatch spriteBatch, float opacity ) : void
drawPartLine ( Vector2 xy, Vector2 xy2, SpriteBatch spriteBatch, float opacity ) : void
drawTileCorner ( Vector2 xy, Vector2 xy2, Vector2 xy3, SpriteBatch spriteBatch, float opacity ) : void
isLandBuildable ( int x, int y ) : bool
m_PacketTimer_Elapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void
populateCityLookup ( ) : void

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

Add() публичный Метод

public Add ( _3DComponent item ) : void
item FSO.Common.Rendering.Framework._3DComponent
Результат void

ClearOldData() публичный Метод

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

CreateRoadAtlas() публичный Метод

public CreateRoadAtlas ( Microsoft.Xna.Framework.Graphics.Texture2D input, SpriteBatch spriteBatch ) : Microsoft.Xna.Framework.Graphics.Texture2D
input Microsoft.Xna.Framework.Graphics.Texture2D
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Результат Microsoft.Xna.Framework.Graphics.Texture2D

CreateTextureAtlas() публичный Метод

Creates a texture atlas with which to texture the terrain.
public CreateTextureAtlas ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch A spritebatch to draw with.
Результат void

CreateTransparencyAtlas() публичный Метод

Creates a transparency atlas with which to texture the terrain.
public CreateTransparencyAtlas ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch A spritebatch to draw with.
Результат void

DeviceReset() публичный Метод

public DeviceReset ( GraphicsDevice Device ) : void
Device GraphicsDevice
Результат void

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

public Draw ( GraphicsDevice gfx ) : void
gfx GraphicsDevice
Результат void

Draw2DPoly() публичный Метод

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

DrawTooltip() публичный Метод

Draws a tooltip at the specified coordinates.
public DrawTooltip ( SpriteBatch batch, string tooltip, Vector2 position, float opacity ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch A SpriteBatch instance.
tooltip string String to be drawn.
position Vector2 Position of tooltip.
opacity float Tooltip's opacity.
Результат void

GenerateAssets() публичный Метод

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

GenerateCityMesh() публичный Метод

public GenerateCityMesh ( GraphicsDevice GfxDevice ) : void
GfxDevice GraphicsDevice
Результат void

GetElements() публичный Метод

public GetElements ( ) : List<_3DComponent>
Результат List<_3DComponent>

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

public Initialize ( String CityName, CityDataRetriever cityData ) : void
CityName String
cityData CityDataRetriever
Результат void

LoadContent() публичный Метод

public LoadContent ( GraphicsDevice GfxDevice ) : void
GfxDevice GraphicsDevice
Результат void

SetTimeOfDay() публичный Метод

public SetTimeOfDay ( double time ) : void
time double
Результат void

Terrain() публичный Метод

public Terrain ( GraphicsDevice Device ) : System
Device GraphicsDevice
Результат System

UIMouseEvent() публичный Метод

public UIMouseEvent ( String type ) : void
type String
Результат void

UnloadEverything() публичный Метод

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

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

public Update ( UpdateState state ) : void
state FSO.Common.Rendering.Framework.Model.UpdateState
Результат void

populateCityLookup() публичный Метод

public populateCityLookup ( LotTileEntry TileData ) : void
TileData LotTileEntry
Результат void

transformSpr() публичный Метод

public transformSpr ( float iScale, Vector3 pos ) : Vector2
iScale float
pos Vector3
Результат Vector2

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

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

public Texture2D,Microsoft.Xna.Framework.Graphics Atlas
Результат Microsoft.Xna.Framework.Graphics.Texture2D

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

public static uint[] MASK_COLORS
Результат uint[]

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

public bool RegenData
Результат bool

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

public Effect,Microsoft.Xna.Framework.Graphics Shader2D
Результат Microsoft.Xna.Framework.Graphics.Effect

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

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

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

public bool ShadowsEnabled
Результат bool

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

public GraphicsDevice m_GraphicsDevice
Результат GraphicsDevice

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

public Texture2D[],Microsoft.Xna.Framework.Graphics m_Roads
Результат Microsoft.Xna.Framework.Graphics.Texture2D[]

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

public float m_ZoomProgress
Результат float

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

public bool m_Zoomed
Результат bool