Exemple #1
0
 public void OnVoxelChanged(VoxelChangeEvent V)
 {
     if (Handler != null)
     {
         Handler(V);
     }
 }
Exemple #2
0
 public void OnVoxelChanged(VoxelChangeEvent V)
 {
     if (V.Type == VoxelChangeEventType.VoxelTypeChanged && V.NewVoxelType == 0)
     {
         Die();
     }
 }
Exemple #3
0
 public void NotifyChangedVoxel(VoxelChangeEvent Change)
 {
     lock (ChangedVoxels)
     {
         ChangedVoxels.Add(Change);
     }
 }
Exemple #4
0
 public void OnVoxelChanged(VoxelChangeEvent e)
 {
     foreach (var task in Tasks)
     {
         task.OnVoxelChange(e);
     }
 }
Exemple #5
0
 public void OnVoxelChanged(VoxelChangeEvent V)
 {
     if (V.Type == VoxelChangeEventType.Explored)
     {
         Delete();
         EntityFactory.CreateEntity <GameComponent>(EntityToSpawn, SpawnLocation, BlackboardData);
     }
 }
Exemple #6
0
 public override void OnVoxelChange(VoxelChangeEvent changeEvent)
 {
     CacheDirty = true;
 }
Exemple #7
0
 public virtual void OnVoxelChange(VoxelChangeEvent changeEvent)
 {
 }
 public void OnVoxelChanged(VoxelChangeEvent V)
 {
     Handler?.Invoke(V);
 }