public void Setup(Entity map, Voxel.Coord c, Voxel.t s) { this.TargetVoxel = map; this.Coord = c; this.StateId = s; this.addEntry(); }
void Blocks_ItemAdded(int index, Entity.Handle e) { PhysicsBlock block = e.Target.Get <PhysicsBlock>(); block.Add(new CommandBinding <BEPUphysics.BroadPhaseEntries.Collidable, BEPUphysics.NarrowPhaseSystems.Pairs.ContactCollection>(block.Collided, this.Collided)); this.blocks.Add(block); }
void Blocks_ItemRemoved(int index, Entity.Handle t) { this.blocks.RemoveAt(index); }