riversong code showcase
This commit is contained in:
24
Source/Riversong/Game/World/Agents/Critters/CritterHerd.cs
Normal file
24
Source/Riversong/Game/World/Agents/Critters/CritterHerd.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using Unity.Mathematics;
|
||||
|
||||
namespace DanieleMarotta.RiversongCodeShowcase
|
||||
{
|
||||
public class CritterHerd : Entity, IAgentSourceEntity
|
||||
{
|
||||
private AgentSourceState _agentsState;
|
||||
|
||||
public CritterDefinition CritterDefinition { get; set; }
|
||||
|
||||
public int2 Center { get; set; }
|
||||
|
||||
public int MaxCritterCount { get; set; }
|
||||
|
||||
public float SpawnTimer { get; set; }
|
||||
|
||||
public float SpawnCooldown => 0;
|
||||
|
||||
public ref AgentSourceState GetAgentSourceStateRW()
|
||||
{
|
||||
return ref _agentsState;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user