コード例 #1
0
        /// <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);
        }
コード例 #2
0
ファイル: ScenePixelStyle.cs プロジェクト: svwilke/Spellzee
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="style">Pixel style</param>
 public ScenePixelStyle(RB.PixelStyle style)
 {
     mStyle = style;
 }