Beispiel #1
0
 public void Setup(Entity map, Voxel.Coord c, Voxel.t s)
 {
     this.TargetVoxel = map;
     this.Coord       = c;
     this.StateId     = s;
     this.addEntry();
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 void Blocks_ItemRemoved(int index, Entity.Handle t)
 {
     this.blocks.RemoveAt(index);
 }