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