예제 #1
0
 public override void Load(ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap)
 {
     componentMiner        = Entity.FindComponent <ComponentMiner>();
     subsystemTerrain      = Entity.Project.FindSubsystem <SubsystemTerrain>();
     subsystemMovingBlocks = Entity.Project.FindSubsystem <SubsystemMovingBlocks>();
     electricBlockBehavior = Entity.Project.FindSubsystem <SubsystemItemElectricBehavior>();
     terrain = subsystemTerrain.Terrain;
     Data    = new Dictionary <Point3, TerrainGeometrySubsets>();
     shader  = ContentManager.Get <Shader>("Shaders/Transparent");
 }
예제 #2
0
 public override void Load(ValuesDictionary valuesDictionary)
 {
     fontBatch2D = primitivesRenderer.FontBatch(ContentManager.Get <BitmapFont>("Fonts/SignFont"));
     subsystemItemElectricBehavior = Project.FindSubsystem <SubsystemItemElectricBehavior>();
     base.Load(valuesDictionary);
 }