Struct FrameCycleSettings
Implements
IComponentData
IQueryTypeParameter
Inherited Members
Namespace: Fwt.HexTerrains.Simulations.Data
Assembly: fwt.hexterrains.dll
Syntax
[Serializable]
public struct FrameCycleSettings : IComponentData, IQueryTypeParameter
Fields
FramesCycleLength
Every FramesCycleLength frames the simulation will be run. Set it to 1 to run the simulation every frame.
Declaration
[Tooltip("Every FramesCycleLength frames the simulation will be run. Set it to 1 to run the simulation every frame.")]
[Min(0)]
public int FramesCycleLength
Field Value
| Type | Description |
|---|---|
| int |
FramesCycleOffset
Offset from the start of the frames cycle that starts over every FramesCycleLength frames.
Declaration
[Tooltip("Offset from the start of the frames cycle that starts over every FramesCycleLength frames.")]
[Min(0)]
public int FramesCycleOffset
Field Value
| Type | Description |
|---|---|
| int |
Properties
Default
Declaration
public static FrameCycleSettings Default { get; }
Property Value
| Type | Description |
|---|---|
| FrameCycleSettings |
Methods
IsSimulationTick(HexTerrainSimulationTimer)
Declaration
public bool IsSimulationTick(HexTerrainSimulationTimer simulationTime)
Parameters
| Type | Name | Description |
|---|---|---|
| HexTerrainSimulationTimer | simulationTime |
Returns
| Type | Description |
|---|---|
| bool |
Implements
Unity.Entities.IComponentData
Unity.Entities.IQueryTypeParameter