示例#1
0
 private void WriteConfig(IContent writable, StaticCursorConfig config)
 {
     using (var stream = writable.GetOutputStream(ConfigFileName))
     {
         xmlSerializer.Serialize(stream, config);
     }
 }
示例#2
0
        public StaticCursor(Texture2D texture, StaticCursorConfig config)
        {
            if (texture == null)
            {
                throw new ArgumentNullException(nameof(texture));
            }

            this.texture = texture;
            this.config  = config;
        }