/// <summary>
        /// Initialize the hardware subsystem
        /// </summary>
        /// <param name="hardwareSettings">Hardware settings</param>
        /// <returns>True if successful</returns>
        public bool Initialize(RB.HardwareSettings hardwareSettings)
        {
            if (!ValidateHWSettings(hardwareSettings))
            {
                return(false);
            }

            mDisplaySize = hardwareSettings.DisplaySize;

            mMapSize      = hardwareSettings.MapSize;
            mMapLayers    = hardwareSettings.MapLayers;
            mMapChunkSize = hardwareSettings.MapChunkSize;

            mFPS = hardwareSettings.FPS;
            mSecondsPerUpdate = 1.0f / mFPS;

            mPixelStyle = hardwareSettings.PixelStyle;

            return(true);
        }
Example #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="style">Pixel style</param>
 public ScenePixelStyle(RB.PixelStyle style)
 {
     mStyle = style;
 }