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"); }
public override void Load(ValuesDictionary valuesDictionary) { fontBatch2D = primitivesRenderer.FontBatch(ContentManager.Get <BitmapFont>("Fonts/SignFont")); subsystemItemElectricBehavior = Project.FindSubsystem <SubsystemItemElectricBehavior>(); base.Load(valuesDictionary); }