|
Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
|


类 | |
| 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) |
| virtual void | Update (float dt) |
| virtual 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) |
| virtual void | UpdateRenderTarget () |
| virtual 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) |
| virtual void | OnPickableGathered (Pickable pickable, ComponentPickableGatherer target, Vector3 distanceToTarget) |
| Public 成员函数 继承自 GameEntitySystem.Subsystem | |
| virtual void | OnEntityAdded (Entity entity) |
| virtual void | OnEntityRemoved (Entity entity) |
| virtual void | Initialize (Project project, ValuesDictionary valuesDictionary) |
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() |
| 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 |
| static int | m_maxTexts = 32 |
| static int[] | m_drawOrders = [50] |
属性 | |
| override int[] | HandledBlocks [get] |
| UpdateOrder | UpdateOrder [get] |
| int[] | DrawOrders [get] |
| 属性 继承自 Game.SubsystemBlockBehavior | |
| virtual int[] | HandledBlocks [get] |
| SubsystemTerrain | SubsystemTerrain [get, set] |
| 属性 继承自 GameEntitySystem.Subsystem | |
| Project | Project [get] |
| ValuesDictionary | ValuesDictionary [get] |
| 属性 继承自 Game.IUpdateable | |
| float | FloatUpdateOrder [get] |
额外继承的成员函数 | |
| 包函数 继承自 GameEntitySystem.Subsystem | |
| void | DisposeInternal () |
在文件 SubsystemSignBlockBehavior.cs 第 8 行定义.
| void Game.SubsystemSignBlockBehavior.CreateRenderTarget | ( | ) |
| void Game.SubsystemSignBlockBehavior.Display_DeviceReset | ( | ) |
|
virtual |
|
virtual |
|
virtual |
| void Game.SubsystemSignBlockBehavior.InvalidateRenderTarget | ( | ) |
|
virtual |
|
virtual |
重载 Game.SubsystemBlockBehavior .
在文件 SubsystemSignBlockBehavior.cs 第 187 行定义.
|
virtual |
重载 Game.SubsystemBlockBehavior .
在文件 SubsystemSignBlockBehavior.cs 第 165 行定义.
|
virtual |
重载 Game.SubsystemBlockBehavior .
在文件 SubsystemSignBlockBehavior.cs 第 176 行定义.
|
virtual |
|
virtual |
| void Game.SubsystemSignBlockBehavior.RenderText | ( | FontBatch2D | fontBatch, |
| FlatBatch2D | flatBatch, | ||
| TextData | textData ) |
|
virtual |
|
virtual |
| void Game.SubsystemSignBlockBehavior.SetSignData | ( | Point3 | point, |
| string[] | lines, | ||
| Color[] | colors, | ||
| string | url, | ||
| MovingBlock | movingBlock = null ) |
|
virtual |
|
virtual |
| bool Game.SubsystemSignBlockBehavior.CopySignsText |
在文件 SubsystemSignBlockBehavior.cs 第 73 行定义.
|
static |
在文件 SubsystemSignBlockBehavior.cs 第 75 行定义.
| BitmapFont Game.SubsystemSignBlockBehavior.m_font = LabelWidget.BitmapFont |
在文件 SubsystemSignBlockBehavior.cs 第 61 行定义.
| float Game.SubsystemSignBlockBehavior.m_fontScale = 1f |
在文件 SubsystemSignBlockBehavior.cs 第 43 行定义.
| List<Vector3> Game.SubsystemSignBlockBehavior.m_lastUpdatePositions = [] |
在文件 SubsystemSignBlockBehavior.cs 第 65 行定义.
|
static |
在文件 SubsystemSignBlockBehavior.cs 第 41 行定义.
|
static |
在文件 SubsystemSignBlockBehavior.cs 第 33 行定义.
|
static |
在文件 SubsystemSignBlockBehavior.cs 第 35 行定义.
| List<TextData> Game.SubsystemSignBlockBehavior.m_nearTexts = [] |
在文件 SubsystemSignBlockBehavior.cs 第 59 行定义.
| PrimitivesRenderer2D Game.SubsystemSignBlockBehavior.m_primitivesRenderer2D = new() |
在文件 SubsystemSignBlockBehavior.cs 第 67 行定义.
| PrimitivesRenderer3D Game.SubsystemSignBlockBehavior.m_primitivesRenderer3D = new() |
在文件 SubsystemSignBlockBehavior.cs 第 69 行定义.
| RenderTarget2D Game.SubsystemSignBlockBehavior.m_renderTarget |
在文件 SubsystemSignBlockBehavior.cs 第 63 行定义.
| SubsystemGameInfo Game.SubsystemSignBlockBehavior.m_subsystemGameInfo |
在文件 SubsystemSignBlockBehavior.cs 第 49 行定义.
| SubsystemTerrain Game.SubsystemSignBlockBehavior.m_subsystemTerrain |
在文件 SubsystemSignBlockBehavior.cs 第 47 行定义.
| SubsystemGameWidgets Game.SubsystemSignBlockBehavior.m_subsystemViews |
在文件 SubsystemSignBlockBehavior.cs 第 45 行定义.
|
static |
在文件 SubsystemSignBlockBehavior.cs 第 39 行定义.
| Dictionary<MovingBlock, TextData> Game.SubsystemSignBlockBehavior.m_textsByMovingBlock = new() |
在文件 SubsystemSignBlockBehavior.cs 第 53 行定义.
在文件 SubsystemSignBlockBehavior.cs 第 51 行定义.
在文件 SubsystemSignBlockBehavior.cs 第 57 行定义.
| List<RenderTarget2D> Game.SubsystemSignBlockBehavior.m_texturesByPoint = [] |
在文件 SubsystemSignBlockBehavior.cs 第 55 行定义.
|
static |
在文件 SubsystemSignBlockBehavior.cs 第 37 行定义.
| bool Game.SubsystemSignBlockBehavior.ShowSignsTexture |
在文件 SubsystemSignBlockBehavior.cs 第 71 行定义.
|
get |
实现了 Game.IDrawable.
在文件 SubsystemSignBlockBehavior.cs 第 81 行定义.
|
get |
在文件 SubsystemSignBlockBehavior.cs 第 77 行定义.
|
get |
实现了 Game.IUpdateable.
在文件 SubsystemSignBlockBehavior.cs 第 79 行定义.