|
My Project v1
Project
|


类 | |
| class | TextData |
Public 成员函数 | |
| SignData | GetSignData (Point3 point) |
| void | SetSignData (Point3 point, string[] lines, Color[] colors, string url, MovingBlock movingBlock=null) |
| override void | OnNeighborBlockChanged (int x, int y, int z, int neighborX, int neighborY, int neighborZ) |
| override bool | OnInteract (TerrainRaycastResult raycastResult, ComponentMiner componentMiner) |
| override void | OnBlockStartMoving (int value, int newValue, int x, int y, int z, MovingBlock movingBlock) |
| override void | OnBlockStopMoving (int value, int oldValue, int x, int y, int z, MovingBlock movingBlock) |
| override void | OnBlockRemoved (int value, int newValue, int x, int y, int z) |
| void | Update (float dt) |
| void | Draw (Camera camera, int drawOrder) |
| override void | Load (ValuesDictionary valuesDictionary) |
| virtual void | SaveTextData (TextData textData, ValuesDictionary valuesDictionary) |
| override void | Save (ValuesDictionary valuesDictionary) |
| override void | Dispose () |
| void | Display_DeviceReset () |
| void | CreateRenderTarget () |
| void | InvalidateRenderTarget () |
| void | RenderText (FontBatch2D fontBatch, FlatBatch2D flatBatch, TextData textData) |
| void | UpdateRenderTarget () |
| void | DrawSigns (Camera camera) |
Public 成员函数 继承自 Game.SubsystemBlockBehavior | |
| virtual void | OnChunkInitialized (TerrainChunk chunk) |
| virtual void | OnChunkDiscarding (TerrainChunk chunk) |
| virtual void | OnBlockGenerated (int value, int x, int y, int z, bool isLoaded) |
| virtual void | OnBlockAdded (int value, int oldValue, int x, int y, int z) |
| virtual void | OnBlockModified (int value, int oldValue, int x, int y, int z) |
| virtual bool | OnUse (Ray3 ray, ComponentMiner componentMiner) |
| virtual bool | OnInteract (MovingBlocksRaycastResult movingBlocksRaycastResult, ComponentMiner componentMiner) |
| virtual bool | OnAim (Ray3 aim, ComponentMiner componentMiner, AimState state) |
| virtual bool | OnEditBlock (int x, int y, int z, int value, ComponentPlayer componentPlayer) |
| virtual bool | OnEditInventoryItem (IInventory inventory, int slotIndex, ComponentPlayer componentPlayer) |
| virtual void | OnItemPlaced (int x, int y, int z, ref BlockPlacementData placementData, int itemValue) |
| virtual void | OnItemHarvested (int x, int y, int z, int blockValue, ref BlockDropValue dropValue, ref int newBlockValue) |
| virtual void | OnCollide (CellFace cellFace, float velocity, ComponentBody componentBody) |
| virtual void | OnExplosion (int value, int x, int y, int z, float damage) |
| virtual void | OnFiredAsProjectile (Projectile projectile) |
| virtual bool | OnHitAsProjectile (CellFace? cellFace, ComponentBody componentBody, WorldItem worldItem) |
| virtual void | OnHitByProjectile (CellFace cellFace, WorldItem worldItem) |
| virtual void | OnHitByProjectile (MovingBlock movingBlock, WorldItem worldItem) |
| virtual int | GetProcessInventoryItemCapacity (IInventory inventory, int slotIndex, int value) |
| virtual void | ProcessInventoryItem (IInventory inventory, int slotIndex, int value, int count, int processCount, out int processedValue, out int processedCount) |
| override void | Load (ValuesDictionary valuesDictionary) |
| virtual void | OnPickableGathered (Pickable pickable, ComponentPickableGatherer target, Vector3 distanceToTarget) |
Public 成员函数 继承自 Game.IDrawable | |
Public 成员函数 继承自 Game.IUpdateable | |
Public 属性 | |
| float | m_fontScale = 1f |
| SubsystemGameWidgets | m_subsystemViews |
| SubsystemTerrain | m_subsystemTerrain |
| SubsystemGameInfo | m_subsystemGameInfo |
| Dictionary< Point3, TextData > | m_textsByPoint = [] |
| Dictionary< MovingBlock, TextData > | m_textsByMovingBlock = new Dictionary<MovingBlock, TextData>() |
| List< RenderTarget2D > | m_texturesByPoint = [] |
| TextData[] | m_textureLocations = new TextData[32] |
| List< TextData > | m_nearTexts = [] |
| BitmapFont | m_font = LabelWidget.BitmapFont |
| RenderTarget2D | m_renderTarget |
| List< Vector3 > | m_lastUpdatePositions = [] |
| PrimitivesRenderer2D | m_primitivesRenderer2D = new() |
| PrimitivesRenderer3D | m_primitivesRenderer3D = new() |
| bool | ShowSignsTexture |
| bool | CopySignsText |
静态 Public 属性 | |
| const float | m_maxVisibilityDistanceSqr = 400f |
| const float | m_minUpdateDistance = 2f |
| const int | m_textWidth = 128 |
| const int | m_textHeight = 32 |
| const int | m_maxTexts = 32 |
| static int[] | m_drawOrders |
属性 | |
| override int[] | HandledBlocks [get] |
| UpdateOrder | UpdateOrder [get] |
| int[] | DrawOrders [get] |
属性 继承自 Game.SubsystemBlockBehavior | |
| virtual int[] | HandledBlocks [get] |
| SubsystemTerrain | SubsystemTerrain [get, set] |
属性 继承自 Game.IDrawable | |
属性 继承自 Game.IUpdateable | |
| float | FloatUpdateOrder [get] |
| void Game.SubsystemSignBlockBehavior.CreateRenderTarget | ( | ) |

| void Game.SubsystemSignBlockBehavior.Display_DeviceReset | ( | ) |


| override void Game.SubsystemSignBlockBehavior.Dispose | ( | ) |

| void Game.SubsystemSignBlockBehavior.Draw | ( | Camera | camera, |
| int | drawOrder ) |
| void Game.SubsystemSignBlockBehavior.DrawSigns | ( | Camera | camera | ) |


| SignData Game.SubsystemSignBlockBehavior.GetSignData | ( | Point3 | point | ) |

| void Game.SubsystemSignBlockBehavior.InvalidateRenderTarget | ( | ) |

| override void Game.SubsystemSignBlockBehavior.Load | ( | ValuesDictionary | valuesDictionary | ) |

|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| void Game.SubsystemSignBlockBehavior.RenderText | ( | FontBatch2D | fontBatch, |
| FlatBatch2D | flatBatch, | ||
| TextData | textData ) |

| override void Game.SubsystemSignBlockBehavior.Save | ( | ValuesDictionary | valuesDictionary | ) |

|
virtual |


| void Game.SubsystemSignBlockBehavior.SetSignData | ( | Point3 | point, |
| string[] | lines, | ||
| Color[] | colors, | ||
| string | url, | ||
| MovingBlock | movingBlock = null ) |


| void Game.SubsystemSignBlockBehavior.Update | ( | float | dt | ) |
| void Game.SubsystemSignBlockBehavior.UpdateRenderTarget | ( | ) |


| bool Game.SubsystemSignBlockBehavior.CopySignsText |
|
static |
| BitmapFont Game.SubsystemSignBlockBehavior.m_font = LabelWidget.BitmapFont |
| float Game.SubsystemSignBlockBehavior.m_fontScale = 1f |
| List<Vector3> Game.SubsystemSignBlockBehavior.m_lastUpdatePositions = [] |
|
static |
|
static |
|
static |
| List<TextData> Game.SubsystemSignBlockBehavior.m_nearTexts = [] |
| PrimitivesRenderer2D Game.SubsystemSignBlockBehavior.m_primitivesRenderer2D = new() |
| PrimitivesRenderer3D Game.SubsystemSignBlockBehavior.m_primitivesRenderer3D = new() |
| RenderTarget2D Game.SubsystemSignBlockBehavior.m_renderTarget |
| SubsystemGameInfo Game.SubsystemSignBlockBehavior.m_subsystemGameInfo |
| SubsystemTerrain Game.SubsystemSignBlockBehavior.m_subsystemTerrain |
| SubsystemGameWidgets Game.SubsystemSignBlockBehavior.m_subsystemViews |
|
static |
| Dictionary<MovingBlock, TextData> Game.SubsystemSignBlockBehavior.m_textsByMovingBlock = new Dictionary<MovingBlock, TextData>() |
| Dictionary<Point3, TextData> Game.SubsystemSignBlockBehavior.m_textsByPoint = [] |
| List<RenderTarget2D> Game.SubsystemSignBlockBehavior.m_texturesByPoint = [] |
|
static |
| bool Game.SubsystemSignBlockBehavior.ShowSignsTexture |
|
get |
实现了 Game.IDrawable.
|
get |
|
get |
实现了 Game.IUpdateable.