Class CalcCellMetricsSystem<TSurface>
Base class for systems that calculate cell metrics for provided surface (TSurface)
Inheritance
ComponentSystemBase
SystemBase
CalcCellMetricsSystem<TSurface>
Inherited Members
SystemBase.Dependency
SystemBase.CheckedStateRef
SystemBase.CompleteDependency()
SystemBase.Entities
SystemBase.Job
SystemBase.Update()
SystemBase.OnUpdate()
SystemBase.GetComponent<T>(Entity)
SystemBase.SetComponent<T>(Entity, T)
SystemBase.HasComponent<T>(Entity)
SystemBase.HasBuffer<T>(Entity)
SystemBase.GetEntityStorageInfoLookup()
SystemBase.GetStorageInfoFromEntity()
SystemBase.Exists(Entity)
ComponentSystemBase.Enabled
ComponentSystemBase.EntityQueries
ComponentSystemBase.GlobalSystemVersion
ComponentSystemBase.LastSystemVersion
ComponentSystemBase.EntityManager
ComponentSystemBase.World
ComponentSystemBase.SystemHandle
ComponentSystemBase.SystemHandleUntyped
ComponentSystemBase.Time
ComponentSystemBase.WorldUpdateAllocator
ComponentSystemBase.OnCreate()
ComponentSystemBase.OnStartRunning()
ComponentSystemBase.OnStopRunning()
ComponentSystemBase.OnDestroy()
ComponentSystemBase.ShouldRunSystem()
ComponentSystemBase.GetDynamicComponentTypeHandle(ComponentType)
ComponentSystemBase.GetSharedComponentTypeHandle<T>()
ComponentSystemBase.GetDynamicSharedComponentTypeHandle(ComponentType)
ComponentSystemBase.GetEntityTypeHandle()
ComponentSystemBase.RequireForUpdate(EntityQuery)
ComponentSystemBase.RequireAnyForUpdate(params EntityQuery[])
ComponentSystemBase.RequireAnyForUpdate(NativeArray<EntityQuery>)
ComponentSystemBase.RequireForUpdate<T>()
ComponentSystemBase.RequireSingletonForUpdate<T>()
ComponentSystemBase.HasSingleton<T>()
ComponentSystemBase.GetSingleton<T>()
ComponentSystemBase.GetSingletonRW<T>()
ComponentSystemBase.TryGetSingleton<T>(out T)
ComponentSystemBase.TryGetSingletonBuffer<T>(out DynamicBuffer<T>)
ComponentSystemBase.SetSingleton<T>(T)
ComponentSystemBase.GetSingletonEntity<T>()
ComponentSystemBase.TryGetSingletonEntity<T>(out Entity)
ComponentSystemBase.GetEntityQuery(params ComponentType[])
ComponentSystemBase.GetEntityQuery(NativeArray<ComponentType>)
ComponentSystemBase.GetEntityQuery(params EntityQueryDesc[])
ComponentSystemBase.GetEntityQuery(in EntityQueryBuilder)
Namespace: Fwt.HexTerrains.Systems
Assembly: fwt.hexterrains.dll
Syntax
public abstract class CalcCellMetricsSystem<TSurface> : SystemBase where TSurface : HexSurfaceLayer
Type Parameters
| Name | Description |
|---|---|
| TSurface | type of surface data this system calculates metrics for |
Methods
CalcCellMetrics(TSurface)
Call this method from inherited system to calculate cell metrics for the provided surface data. Override this method if you need to change the way cell metrics are calculated.
Declaration
public virtual void CalcCellMetrics(TSurface surfaceData)
Parameters
| Type | Name | Description |
|---|---|---|
| TSurface | surfaceData |
ScheduleCalculateMetricsJob(HeightMapDataLayer, CellBiomesDataLayer, CellMetricsDataLayer, HexTerrainSettings, HexTerrainMetrics, JobHandle)
Schedules a job that calculates CellMetrics for the provided surface data. Override this function if you want to schedule another job to do this.
Declaration
protected virtual JobHandle ScheduleCalculateMetricsJob(HeightMapDataLayer heightMap, CellBiomesDataLayer biomesMap, CellMetricsDataLayer cellMetrics, HexTerrainSettings settings, HexTerrainMetrics terrainMetrics, JobHandle dependency)
Parameters
| Type | Name | Description |
|---|---|---|
| HeightMapDataLayer | heightMap | HeightMap data layer |
| CellBiomesDataLayer | biomesMap | BiomesMap data layer |
| CellMetricsDataLayer | cellMetrics | CellMetrics data layer |
| HexTerrainSettings | settings | settings of the terrain |
| HexTerrainMetrics | terrainMetrics | metrics of the terrain |
| JobHandle | dependency | JobHandle for scheduling a job that calculates metrics |
Returns
| Type | Description |
|---|---|
| JobHandle | JobHandle of the scheduled job |