Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
SubsystemHammerBlockBehavior.cs
浏览该文件的文档.
1using Engine;
3
4namespace Game {
7
8 public override int[] HandledBlocks => [];
9
10 public override bool OnUse(Ray3 ray, ComponentMiner componentMiner) {
11 TerrainRaycastResult? terrainRaycastResult = componentMiner.Raycast<TerrainRaycastResult>(ray, RaycastMode.Digging);
12 if (terrainRaycastResult.HasValue) {
13 m_subsystemFurnitureBlockBehavior.ScanDesign(terrainRaycastResult.Value.CellFace, ray.Direction, componentMiner);
14 return true;
15 }
16 return false;
17 }
18
19 public override void Load(ValuesDictionary valuesDictionary) {
20 base.Load(valuesDictionary);
22 }
23 }
24}
virtual object Raycast(Ray3 ray, RaycastMode mode, bool raycastTerrain=true, bool raycastBodies=true, bool raycastMovingBlocks=true, float? Reach=null)
发出射线检测,检测玩家点击到的目标
override void Load(ValuesDictionary valuesDictionary)
override bool OnUse(Ray3 ray, ComponentMiner componentMiner)
SubsystemFurnitureBlockBehavior m_subsystemFurnitureBlockBehavior
ValuesDictionary ValuesDictionary
Vector3 Direction
定义 Ray3.cs:5