Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
RenderDataHalfBlock Class Reference
Inheritance diagram for RenderDataHalfBlock:
RenderDataTile RenderData EScriptable IRenderer

Public Member Functions

override void Draw (RenderParam p)
 
- Public Member Functions inherited from RenderDataTile
override void Draw (RenderParam p)
 
override void DrawWithRotation (RenderParam p, float angle)
 
- Public Member Functions inherited from RenderData
virtual CardActor CreateActor ()
 
void Init ()
 
virtual void OnInit ()
 
int ConvertTile (int tile)
 
void RenderToRenderCam (RenderParam p)
 
void Draw (RenderParam p, int tile)
 
virtual void Draw (RenderParam p)
 
void DrawRepeatTo (RenderParam p, float maxY, float height, ref Vector3 peakFix, bool skipFirst=false, int fire=0, bool isBlock=false)
 
void DrawRepeat (RenderParam p, int count, float size, bool skipFirst=false)
 
virtual void DrawWithRotation (RenderParam p, float angle)
 
virtual void DrawShadow (RenderParam p)
 
void RenderToRenderCam (RenderParam p)
 
void Draw (RenderParam p)
 

Public Attributes

Vector3 floorFix
 
- Public Attributes inherited from RenderDataTile
bool liquid
 
float snowZ = -0.01f
 
- Public Attributes inherited from RenderData
int idShadow
 
MeshPass pass
 
Vector3 offset
 
Vector3 offsetBack
 
Vector3 offsetShadow
 
Vector3 heldPos
 
Vector2 imagePivot = new Vector2(0.5f, 0.25f)
 
Vector2 imageScale = new Vector2(1f, 1f)
 
Vector2 size
 
bool multiSize
 
bool animate
 
bool useOffsetBack
 
bool persistActor
 
bool symmetry = true
 
float hangedFixZ
 
float stackZ
 
SubPassData subCrate
 
SourcePref shadowPref
 
RenderData subData
 
bool initialized
 
bool hasSubPass
 
bool hasSnowPass
 

Private Member Functions

void OnValidate ()
 

Additional Inherited Members

- Static Public Member Functions inherited from EScriptable
static int rnd (int a)
 
- Static Public Attributes inherited from RenderData
const int HeldLightMod = 1572864
 
static Quaternion deadRotation = Quaternion.Euler(0f, 0f, 90f)
 
static GameSetting.RenderSetting renderSetting
 
- Protected Attributes inherited from RenderData
Vector3 _offset
 
- Properties inherited from RenderData
static Quaternion shadowRotation [get]
 
static Vector3 shadowScale [get]
 
static Vector3 shadowOffset [get]
 
virtual bool SkipOnMap [get]
 
virtual string pathSprite [get]
 
virtual string prefabName [get]
 
virtual bool ForceAltHeldPosition [get]
 

Detailed Description

Definition at line 3 of file RenderDataHalfBlock.cs.

Member Function Documentation

◆ Draw()

override void RenderDataHalfBlock.Draw ( RenderParam  p)
inlinevirtual

Reimplemented from RenderData.

Definition at line 7 of file RenderDataHalfBlock.cs.

8 {
10 meshBatch.matrices[pass.idx].m03 = p.x + offset.x;
11 meshBatch.matrices[pass.idx].m13 = p.y + offset.y;
12 meshBatch.matrices[pass.idx].m23 = p.z + offset.z;
13 meshBatch.tiles[pass.idx] = p.tile + 2000000f;
14 meshBatch.colors[pass.idx] = p.color - 1048576f;
15 meshBatch.matColors[pass.idx] = p.matColor;
16 pass.idx++;
17 if (pass.idx == pass.batchSize)
18 {
20 }
22 MeshBatch meshBatch2 = passFloor.batches[passFloor.batchIdx];
23 meshBatch2.matrices[passFloor.idx].m03 = p.x + floorFix.x;
24 meshBatch2.matrices[passFloor.idx].m13 = p.y + floorFix.y;
25 meshBatch2.matrices[passFloor.idx].m23 = p.z + floorFix.z;
26 meshBatch2.tiles[passFloor.idx] = p.tile2;
27 meshBatch2.colors[passFloor.idx] = p.color - 1048576f;
28 meshBatch2.matColors[passFloor.idx] = p.halfBlockColor;
29 passFloor.idx++;
30 if (passFloor.idx == passFloor.batchSize)
31 {
32 passFloor.NextBatch();
33 }
34 }
BaseTileMap tileMap
MeshPass passFloor
Definition: BaseTileMap.cs:145
BaseGameScreen screen
Definition: Core.cs:67
Definition: EClass.cs:5
static Core core
Definition: EClass.cs:6
float[] matColors
Definition: MeshBatch.cs:11
Matrix4x4[] matrices
Definition: MeshBatch.cs:5
float[] tiles
Definition: MeshBatch.cs:7
float[] colors
Definition: MeshBatch.cs:9
int batchIdx
Definition: MeshPass.cs:60
void NextBatch()
Definition: MeshPass.cs:417
int batchSize
Definition: MeshPass.cs:63
List< MeshBatch > batches
Definition: MeshPass.cs:66
int idx
Definition: MeshPass.cs:57
Vector3 offset
Definition: RenderData.cs:18
MeshPass pass
Definition: RenderData.cs:16
int halfBlockColor
Definition: RenderParam.cs:11

References MeshPass.batches, MeshPass.batchIdx, MeshPass.batchSize, MeshBatch.colors, EClass.core, floorFix, RenderParam.halfBlockColor, MeshPass.idx, MeshPassParam.matColor, MeshBatch.matColors, MeshBatch.matrices, MeshPass.NextBatch(), RenderData.offset, RenderData.pass, BaseTileMap.passFloor, Core.screen, RenderParam.tile2, BaseGameScreen.tileMap, and MeshBatch.tiles.

◆ OnValidate()

void RenderDataHalfBlock.OnValidate ( )
inlineprivate

Definition at line 36 of file RenderDataHalfBlock.cs.

37 {
39 }
Vector3 _offset
Definition: RenderData.cs:10

References RenderData._offset, and RenderData.offset.

Member Data Documentation

◆ floorFix

Vector3 RenderDataHalfBlock.floorFix

Definition at line 5 of file RenderDataHalfBlock.cs.

Referenced by Draw().


The documentation for this class was generated from the following file: