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